api.Clipboard.write

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 76 on 2019-07-30 Note: From version 107, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 107, the user must grant the clipboard-write permission.

In Chrome Android version 76 on 2019-07-30 Note: From version 107, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 107, the user must grant the clipboard-write permission.

In Edge version 79 on 2020-01-15

In Firefox version 127 on 2024-06-11 Note: This method must be called within user gesture event handlers. Web extensions require the clipboardWrite permission in manifest to read data. With this permission, the extension does not require a user interaction and does not display a paste prompt. A paste prompt is displayed when the clipboard is read. If the clipboard contains same-origin content, the prompt is suppressed.

In Firefox for Android version 127 on 2024-06-11 Note: This method must be called within user gesture event handlers. Web extensions require the clipboardWrite permission in manifest to read data. With this permission, the extension does not require a user interaction and does not display a paste prompt. A paste prompt is displayed when the clipboard is read. If the clipboard contains same-origin content, the prompt is suppressed.

Not in Internet Explorer

In Quest Browser version 7.0 on undefined Note: From version false, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version false, the user must grant the clipboard-write permission.

In Opera version 63 on 2019-08-20 Note: From version 93, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 93, the user must grant the clipboard-write permission.

In Opera Android version 54 on 2019-10-18 Note: From version 73, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 73, the user must grant the clipboard-write permission.

In Safari version 13.1 on 2020-03-24

In Safari on iOS version 13.4 on 2020-03-24

In Samsung Internet version 12.0 on 2020-06-19 Note: From version 21.0, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 21.0, the user must grant the clipboard-write permission.

In WebView Android version 76 on 2019-07-30 Note: From version 107, this method must be called within user gesture event handlers, or the user must grant the clipboard-write permission. Before version 107, the user must grant the clipboard-write permission.

In WebView on iOS version 13.4 on 2020-03-24