---
title: "go(to:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebview/go(to:)"
---

# go(to:)

Navigates to an item from the back-forward list and sets it as the current item.

## Declaration

```swift
func go(to item: WKBackForwardListItem) -> WKNavigation?
```

## Parameters

- `item`: The item to navigate to. The item must be in the web view’s back-forward list.

## Return Value

Return Value A new navigation to the requested item, or nil if it is already the current item or is not part of the web view’s back-forward list.

## See Also

### Navigating between webpages

- [allowsBackForwardNavigationGestures](webkit/wkwebview/allowsbackforwardnavigationgestures.md)
- [backForwardList](webkit/wkwebview/backforwardlist.md)
- [goBack(_:)](webkit/wkwebview/goback(_:).md)
- [goBack()](webkit/wkwebview/goback().md)
- [goForward(_:)](webkit/wkwebview/goforward(_:).md)
- [goForward()](webkit/wkwebview/goforward().md)
- [canGoBack](webkit/wkwebview/cangoback.md)
- [canGoForward](webkit/wkwebview/cangoforward.md)
- [allowsLinkPreview](webkit/wkwebview/allowslinkpreview.md)
- [interactionState](webkit/wkwebview/interactionstate.md)
