---
title: deselectAll()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webdocumenttext/deselectall()
---

# deselectAll()

Deselects the currently selected text in the web document.

## Declaration

```swift
func deselectAll()
```

## See Also

### Selecting and deselecting text

- [selectAll()](webkit/webdocumenttext/selectall().md)
- [selectedString()](webkit/webdocumenttext/selectedstring().md)
- [selectedAttributedString()](webkit/webdocumenttext/selectedattributedstring().md)
