---
title: buttonNumber
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpage/navigationaction/buttonnumber-4sg9k
---

# buttonNumber

The number of the mouse button that caused the navigation request.

## Declaration

```swift
@MainActor var buttonNumber: UIEvent.ButtonMask { get }
```
