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

# execCommand(_:userInterface:)

## Declaration

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