Clipboard API
API to provide copy, cut and paste events as well as provide access to the OS clipboard.
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Chrome for Android | Firefox for Android | IE Mobile | UC Browser for Android | Samsung Internet | QQ Browser | Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49
See notes:
|
|||||||||||||||||
56
See notes:
|
9.3
See notes:
|
4.4
See notes:
|
|||||||||||||||
14
See notes:
|
52
See notes:
|
57
See notes:
|
10
See notes:
|
10.0-10.2
See notes:
|
4.4.3-4.4.4
See notes:
|
4
See notes:
|
|||||||||||
11
See notes:
|
15
See notes:
|
53
See notes:
|
58
See notes:
|
10.1
See notes:
|
44
See notes:
|
10.3
See notes:
|
all | 56
See notes:
|
10
See notes:
|
37
See notes:
|
57
See notes:
|
52
See notes:
|
11 | 11.4 | 5
See notes:
|
1.2
See notes:
|
7.12
See notes:
|
54
See notes:
|
59
See notes:
|
TP
See notes:
|
45
See notes:
|
||||||||||||||
55
See notes:
|
60
See notes:
|
46
See notes:
|
|||||||||||||||
56
See notes:
|
61
See notes:
|
Notes
Internet Explorer will display a security prompt for access to the OS clipboard.
Chrome 42+, Opera 29+ and Firefox 41+ support clipboard reading/writing only when part of a user action (click, keydown, etc).
Firefox 40- users can enable support with a security preference setting.
-
1
Only supports
Text
andURL
data types and uses a non-standard method of interacting with the clipboard. -
2
Only fires
copy
event on a valid selection and onlycut
andpaste
in focused editable fields. -
3
Only supports OS clipboard reading/writing via shortcut keys, not through
document.execCommand()
. -
4
Only supports
paste
event (on focused editable field). -
5
Does not support the
ClipboardEvent
constructor -
6
Supports
cut
©
events without a focused editable field, but notpaste
(presumably for security reasons) -
7
Supports
cut
©
events without a focused editable field, but does not firepaste
withdocument.execCommand('paste')