Clipboard
The Clipboard
interface of the Clipboard API provides read and write access to the contents of the system clipboard. Available only in secure contexts.
Functions
The read()
method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
The read()
method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
The readText()
method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.
The write()
method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.
The write()
method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.
The writeText()
method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.