execCommand()
Discouraged
This feature is discouraged. Consider using Async clipboard , Contenteditable instead. For the rationale, see:
The execCommand()
method reads and writes from the clipboard and performs editing commands on editable text, such as changing the font name or style. Related methods check whether commands are supported, enabled, or applied.
Learning resources on MDN
- Document: execCommand() method
- Document: queryCommandEnabled() method
- Document: queryCommandState() method
- Document: queryCommandSupported() method
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox 69 Released on 2019-09-03
- Firefox for Android 79 Released on 2020-07-28
- Safari ❌
- Safari on iOS ❌
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature