Synchronous Clipboard API
API to provide copy, cut and paste events as well as provide access to the OS clipboard.
Spec | https://www.w3.org/TR/clipboard-apis/ |
---|---|
Status | W3C Working Draft |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|
98 (7) | |||||
95 (6) | 97 (7) | ||||
94 (6) | 96 (7) | TP | |||
11 (1,2,5) | 95 (7) | 93 (6) | 95 (7) | 15 | 80 (7) |
10 (1,2,5) | 94 (7) | 92 (6) | 94 (7) | 14.1 | 79 (7) |
9 (1,2,5) | 93 (7) | 91 (6) | 93 (7) | 14 | 78 (7) |
8 (1,2,5) | 92 (7) | 90 (6) | 92 (7) | 13.1 | 77 (7) |
Show all | |||||
7 (1,2,5) | 91 (7) | 89 (6) | 91 (7) | 13 | 76 (7) |
6 (1,2,5) | 90 (7) | 88 (6) | 90 (7) | 12.1 | 75 (7) |
5.5 (1,2,5) | 89 (7) | 87 (6) | 89 (7) | 12 | 74 (7) |
88 (7) | 86 (6) | 88 (7) | 11.1 (2,5) | 73 (7) | |
87 (7) | 85 (6) | 87 (7) | 11 (2,5) | 72 (7) | |
86 (7) | 84 (6) | 86 (7) | 10.1 (2,5) | 71 (7) | |
85 (7) | 83 (6) | 85 (7) | 10 (2,5) | 70 (7) | |
84 (7) | 82 (6) | 84 (7) | 9.1 (2,3,5) | 69 (7) | |
83 (7) | 81 (6) | 83 (7) | 9 (2,3,5) | 68 (7) | |
81 (7) | 80 (6) | 81 (7) | 8 (2,3,5) | 67 (7) | |
80 (7) | 79 (6) | 80 (7) | 7.1 (2,3,5) | 66 (7) | |
79 (7) | 78 (6) | 79 (7) | 7 (2,3,5) | 65 (7) | |
18 (2) | 77 (6) | 78 (7) | 6.1 (2,3,5) | 64 (7) | |
17 (2) | 76 (6) | 77 (7) | 6 (2,3,5) | 63 (7) | |
16 (1,2,5) | 75 (6) | 76 (7) | 5.1 (2,3,5) | 62 (7) | |
15 (1,2,5) | 74 (6) | 75 (7) | 5 (2,3,5) | 60 (7) | |
14 (1,2,5) | 73 (6) | 74 (7) | 4 (2,3,5) | 58 (7) | |
13 (1,2,5) | 72 (6) | 73 (7) | 3.2 | 57 (7) | |
12 (1,2,5) | 71 (6) | 72 (7) | 3.1 | 56 (7) | |
70 (6) | 71 (7) | 55 (7) | |||
69 (6) | 70 (7) | 54 (7) | |||
68 (6) | 69 (7) | 53 (7) | |||
67 (6) | 68 (7) | 52 (7) | |||
66 (6) | 67 (7) | 51 (7) | |||
65 (6) | 66 (7) | 50 (7) | |||
64 (6) | 65 (7) | 49 (7) | |||
63 (6) | 64 (7) | 48 (7) | |||
62 (6) | 63 (7) | 47 (7) | |||
61 (6) | 62 (7) | 46 (7) | |||
60 (6) | 61 (7) | 45 (7) | |||
59 (6) | 60 (7) | 44 (5,7) | |||
58 (6) | 59 (7) | 43 (5,7) | |||
57 (6) | 58 (7) | 42 (5,7) | |||
56 (6) | 57 (5,7) | 41 (5,7) | |||
55 (6) | 56 (5,7) | 40 (5,7) | |||
54 (6) | 55 (5,7) | 39 (5,7) | |||
53 (6) | 54 (5,7) | 38 (5,7) | |||
52 (6) | 53 (5,7) | 37 (5,7) | |||
51 (6) | 52 (5,7) | 36 (5,7) | |||
50 (6) | 51 (5,7) | 35 (5,7) | |||
49 (6) | 50 (5,7) | 34 (5,7) | |||
48 (6) | 49 (5,7) | 33 (5,7) | |||
47 (6) | 48 (5,7) | 32 (5,7) | |||
46 (6) | 47 (5,7) | 31 (5,7) | |||
45 (6) | 46 (5,7) | 30 (5,7) | |||
44 (6) | 45 (5,7) | 29 (3,5) | |||
43 (6) | 44 (5,7) | 28 (3,5) | |||
42 (6) | 43 (5,7) | 27 (3,5) | |||
41 (6) | 42 (3,5) | 26 (3,5) | |||
40 (2,3) | 41 (3,5) | 25 (3,5) | |||
39 (2,3) | 40 (3,5) | 24 (3,5) | |||
38 (2,3) | 39 (3,5) | 23 (3,5) | |||
37 (2,3) | 38 (3,5) | 22 (3,5) | |||
36 (2,3) | 37 (3,5) | 21 (3,5) | |||
35 (2,3) | 36 (3,5) | 20 (3,5) | |||
34 (2,3) | 35 (3,5) | 19 (3,5) | |||
33 (2,3) | 34 (3,5) | 18 (3,5) | |||
32 (2,3) | 33 (3,5) | 17 (3,5) | |||
31 (2,3) | 32 (3,5) | 16 (3,5) | |||
30 (2,3) | 31 (3,5) | 15 (3,5) | |||
29 (2,3) | 30 (3,5) | 12.1 (3) | |||
28 (2,3) | 29 (3,5) | 12 | |||
27 (2,3) | 28 (3,5) | 11.6 | |||
26 (2,3) | 27 (3,5) | 11.5 | |||
25 (2,3) | 26 (3,5) | 11.1 | |||
24 (2,3) | 25 (3,5) | 11 | |||
23 (2,3) | 24 (3,5) | 10.6 | |||
22 (2,3) | 23 (3,5) | 10.5 | |||
21 | 22 (3,5) | 10.0-10.1 | |||
20 | 21 (3,5) | 9.5-9.6 | |||
19 | 20 (3,5) | 9 | |||
18 | 19 (3,5) | ||||
17 | 18 (3,5) | ||||
16 | 17 (3,5) | ||||
15 | 16 (3,5) | ||||
14 | 15 (3,5) | ||||
13 | 14 (3,5) | ||||
12 | 13 (3,5) | ||||
11 | 12 | ||||
10 | 11 | ||||
9 | 10 | ||||
8 | 9 | ||||
7 | 8 | ||||
6 | 7 | ||||
5 | 6 | ||||
4 | 5 | ||||
3.6 | 4 | ||||
3.5 | |||||
3 | |||||
2 |
Safari on iOS | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Android Chrome | Android Firefox | IE Mobile | Android UC Browser | Samsung Internet | QQ Browser | Baidu Browser | KaiOS Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | all | 94 (2) | 10 (2,5) | 64 (2) | 94 (7) | 92 (4) | 11 | 12.12 | 15.0 (7) | 10.4 (5,7) | 7.12 (5) | 2.5 (6) |
14.5-14.8 | 4.4.3-4.4.4 (2,5) | 7 | 12.1 | 10 | 14.0 (7) | |||||||
14.0-14.4 | 4.4 (2,5) | 12 | 13.0 (7) | |||||||||
13.4-13.7 | 4.2-4.3 | 11.5 | 12.0 (7) | |||||||||
Show all | ||||||||||||
13.3 | 4.1 | 11.1 | 11.1-11.2 (7) | |||||||||
13.2 | 4 | 11 | 10.1 (7) | |||||||||
13.0-13.1 | 3 | 10 | 9.2 (7) | |||||||||
12.2-12.5 | 2.3 | 8.2 (7) | ||||||||||
12.0-12.1 | 2.2 | 7.2-7.4 (7) | ||||||||||
11.3-11.4 (2,3,5) | 2.1 | 6.2-6.4 (5) | ||||||||||
11.0-11.2 (2,3,5) | 5.0-5.4 (5) | |||||||||||
10.3 (2,3,5) | 4 (2,5) | |||||||||||
10.0-10.2 (2,3,5) | ||||||||||||
9.3 (2,3,5) | ||||||||||||
9.0-9.2 (2,3,5) | ||||||||||||
8.1-8.4 (2,3,5) | ||||||||||||
8 (2,3,5) | ||||||||||||
7.0-7.1 (2,3,5) | ||||||||||||
6.0-6.1 (2,3,5) | ||||||||||||
5.0-5.1 (2,3,5) | ||||||||||||
4.2-4.3 | ||||||||||||
4.0-4.1 | ||||||||||||
3.2 |
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).
Only supports
Text
andURL
data types and uses a non-standard method of interacting with the clipboard.Only fires
copy
event on a valid selection and onlycut
andpaste
in focused editable fields.Only supports OS clipboard reading/writing via shortcut keys, not through
document.execCommand()
.Only supports
paste
event (on focused editable field).Does not support the
ClipboardEvent
constructorSupports
cut
©
events without a focused editable field, but notpaste
(presumably for security reasons)Supports
cut
©
events without a focused editable field, but does not firepaste
withdocument.execCommand('paste')
Bugs
Before Firefox 41,
queryCommandEnabled
andexecCommand
with argumentscut
,copy
orpaste
would throw errors instead of returnfalse
.
Resources
Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/clipboard