<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebBackForwardList/item(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebBackForwardList(im)itemAtIndex:"
  },
  "title" : "item(at:)"
}
-->

# item(at:)

Returns the item at the specified index in the back-forward list.

```
func item(at index: Int32) -> WebHistoryItem!
```

## Parameters

`index`

The index of the item to return. The position of the current item is index `0`, and the position of any other item is expressed as an offset from index `0`. For example, the item preceding the current item is at index `-1`, and the item following the current item is at index `1`.

## Return Value

The item at the specified index, or `nil` if `index` exceeds the bounds of the back-forward list (that is, if `index` is greater than the value returned by [`forwardListCount`](/documentation/WebKit/WebBackForwardList/forwardListCount), or less than the negative form of the value returned by [`backListCount`](/documentation/WebKit/WebBackForwardList/backListCount)).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)