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

# go(to:)

Makes the specified item in the back-forward list the current item.

## Declaration

```swift
func go(to item: WebHistoryItem!)
```

## Parameters

- `item`: A web history item that represents a visited webpage. If item is not in the back-forward list, an doc://com.apple.documentation/documentation/Foundation/NSExceptionName/invalidArgumentException exception is raised.

## See Also

### Moving Backward and Forward

- [goBack()](webkit/webbackforwardlist/goback().md)
- [goForward()](webkit/webbackforwardlist/goforward().md)
