> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-building-blocks/go-back-or-forward.md).

# Go Back or Forward

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F3orWC7EcpLXLI3iWnp7c%2Fgo_back_or_forward_block.png?alt=media&amp;token=f83cedc4-9253-491c-b49b-b015ca9d7a86" alt="" width="375"><figcaption></figcaption></figure>

The **Go Back or Forward** block moves the browser's active page one step through its history; it's the same as clicking your browser's Back and Forward buttons. The blocks that follow act on wherever the navigation lands.

{% hint style="info" %}
Each block moves a single step, just like the browser buttons. To move several entries at once, chain multiple blocks or put this one inside a [Start Repeat](https://docs.zerowork.io/using-zerowork/using-building-blocks/start-repeat) loop.
{% endhint %}

### How To Use It

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FDr5VparmoYidg28QvSPc%2Fgo_back_or_forward_settings.png?alt=media&amp;token=7a626aa1-8eb3-4344-be12-7dea318c2839" alt=""><figcaption></figcaption></figure>

Choose which way to move through the active tab's history.

* **Go back** returns to the previous page.
* **Go forward** advances to the next page; it's only possible after you've already gone back.

#### Block-level Delays

**Min sec** and **Max sec** represent a pause after this block's action completes, before the next block runs. The wait is randomized between the two values, and setting both to the same number makes it fixed. This block defaults to **3 seconds**.

{% hint style="info" %}
See the [Delay](https://docs.zerowork.io/using-zerowork/using-building-blocks/delay) block for how these two fields behave, including decimals, references, and what happens when a field is left empty. See [Delay Times between the Building Blocks](https://docs.zerowork.io/using-zerowork/using-building-blocks/building-block-options/delay-times-between-the-building-blocks) for how block-level delays fit into a TaskBot's run.
{% endhint %}

### Things To Know

* **It needs a page already open.** Unlike the [Open Link](https://docs.zerowork.io/using-zerowork/using-building-blocks/open-link) block, this block doesn't launch a browser. Instead, it navigates the browser tab you're already on. Run it after an Open Link or [Launch Browser](https://docs.zerowork.io/using-zerowork/using-building-blocks/launch-browser) block.
* **Nothing to go to is not an error.** If there's no previous or next page, or the entry it would move to is the same URL you're already on, this block changes nothing; it logs a warning and the run continues in the tab it was already in. If later blocks act on the wrong page, this is the first thing to check in your [Run Reports](/using-zerowork/using-run-reports.md).
* **It waits for the destination to load.** Going back or forward reloads the page it lands on, so this block waits for that page just like Open Link does; it can be slow, or time out, on JavaScript-heavy sites.
* **If you've ended up on an `about:blank` web page, you've probably gone too far back.**

### Block Behavior

**When there is a page to go to** the block navigates the active tab to it, waits for it to load, and logs a success message.

**When there is nothing to go to** (no previous or next entry, or the entry is the same page you're already on) the block changes nothing, logs a warning, and the run continues.

**When the destination page loads too slowly** the block retries at progressively lower load thresholds (first waiting for the main content, then for the first network response) before failing with a timeout message, exactly as the [Open Link](/using-zerowork/using-building-blocks/open-link.md) block does.
