---
title: "goForward(for:completionHandler:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/goforward(for:completionhandler:)"
---

# goForward(for:completionHandler:)

Called to navigate the tab to the next page in its history.

## Declaration

```swift
optional func goForward(for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)
```

```swift
optional func goForward(for context: WKWebExtensionContext) async throws
```

## Parameters

- `context`: The context in which the web extension is running.
- `completionHandler`: A block that must be called upon completion. It takes a single error argument, which should be provided if any errors occurred.

## Discussion

Discussion Navigates to the next page in the tab’s web view via goForward() if not implemented.
