Limited Clipboard
execCommand()
The document.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.
Baseline Status
Limited
Missing ≥1 target
First Core Launch
Safari 1.3
2005-04-15
Core-3 Stability
5,254d (14.4y)
Last: Firefox (2019-09-03)
BCD Keys Mapped
10
Group: Clipboard
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari | desktop | 1.3 | 2005-04-15 |
| Safari on iOS | mobile | 1 | 2007-06-29 |
| Chrome | desktop | 1 | 2008-12-11 |
| Chrome Android | mobile | 18 | 2012-06-27 |
| Edge | desktop | 12 | 2015-07-29 |
| Firefox | desktop | 69 | 2019-09-03 |
| Firefox for Android | mobile | 79 | 2020-07-28 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.Document.execCommand | DOM API | 5,254d (14.4y) |
| api.Document.execCommand.copy | DOM API | 525d (1.4y) |
| api.Document.execCommand.cut | DOM API | 525d (1.4y) |
| api.Document.execCommand.defaultParagraphSeparator | DOM API | 3,397d (9.3y) limbo |
| api.Document.execCommand.insertBrOnReturn | DOM API | 7,667d (21.0y) limbo |
| api.Document.queryCommandEnabled | DOM API | 5,240d (14.3y) |
| api.Document.queryCommandIndeterm | DOM API | 5,240d (14.3y) |
| api.Document.queryCommandState | DOM API | 5,240d (14.3y) |
| api.Document.queryCommandSupported | DOM API | 5,240d (14.3y) |
| api.Document.queryCommandValue | DOM API | 5,240d (14.3y) |