---
title: "execCommand(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domdocument/execcommand(_:)"
---

# execCommand(_:)

## Declaration

```swift
func execCommand(_ command: String!) -> Bool
```
