---
title: "subscript(_:)"
framework: webkit
role: symbol
role_heading: Instance Subscript
path: "webkit/webpage/backforwardlist-swift.struct/subscript(_:)"
---

# subscript(_:)

Accesses the item at the relative offset from the current item.

## Declaration

```swift
@MainActor subscript(index: Int) -> WebPage.BackForwardList.Item? { get }
```

## Parameters

- `index`: The offset of the desired item from the current item. Specify 0 for the current item, -1 for the immediately preceding item, 1 for the immediately following item, and so on.

## Return Value

Return Value The item at the specified offset from the current item, or nil if the index exceeds the limits of the list.
