W3cubDocs

/DOM

Clipboard API

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 interfaces

Clipboard Secure context
Provides an interface for reading and writing text and data to or from the system clipboard. The specification refers to this as the 'Async Clipboard API.'
ClipboardEvent Secure context
Represents events providing information related to modification of the clipboard, that is cut, copy, and paste events. The specification refers to this as the 'Clipboard Event API'.

Specifications

Specification Status Comment
Clipboard API and events Working Draft Initial definition.

Browser Compatibility

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