---
title: selectAll()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webdocumenttext/selectall()
---

# selectAll()

Selects all the text in the web document.

## Declaration

```swift
func selectAll()
```

## See Also

### Selecting and deselecting text

- [deselectAll()](webkit/webdocumenttext/deselectall().md)
- [selectedString()](webkit/webdocumenttext/selectedstring().md)
- [selectedAttributedString()](webkit/webdocumenttext/selectedattributedstring().md)
