This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Clipboard API is a modern API providing asynchronous functions and secure context support. This API is designed to supercede clipboard access using document.execCommand()
Clipboard
Secure context
ClipboardEvent
Secure context
cut
, copy
, and paste
events. The specification refers to this as the 'Clipboard Event API'.Specification | Status | Comment |
---|---|---|
Clipboard API and events | Working Draft | Initial definition. |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Clipboard | 61 | ? | ? | ? | 48 | ? |
ClipboardEvent | 58 | (Yes) | (Yes) | 4.0 | 45 | (Yes) |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Clipboard | 61 | 61 | ? | ? | ? | 48 | ? |
ClipboardEvent | 58 | 58 | (Yes) | ? | 4.0 | 45 | (Yes) |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API