api.Clipboard.readText

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 66 on 2018-04-17 Note: The user must grant the clipboard-read permission.

In Chrome Android version 66 on 2018-04-17 Note: The user must grant the clipboard-read permission.

In Edge version 79 on 2020-01-15 Note: The user must grant the clipboard-read permission.

In Firefox version 125 on 2024-04-16 Note: This method must be called within user gesture event handlers. A paste prompt is displayed when the clipboard is read. If the clipboard contains same-origin content, the prompt is suppressed. Web extensions with the clipboardRead permission in their manifest can read data without the paste prompt displaying. Prior to Firefox 147, extensions without this permission were unable to read clipboard data.

In Firefox for Android version 125 on 2024-04-16 Note: This method must be called within user gesture event handlers. A paste prompt is displayed when the clipboard is read. If the clipboard contains same-origin content, the prompt is suppressed. Web extensions with the clipboardRead permission in their manifest can read data without the paste prompt displaying. Prior to Firefox for Android 147, extensions without this permission were unable to read clipboard data.

Not in Internet Explorer

In Quest Browser version 5.0 on undefined Note: The user must grant the clipboard-read permission.

In Opera version 53 on 2018-05-10 Note: The user must grant the clipboard-read permission.

In Opera Android version 47 on 2018-07-23 Note: The user must grant the clipboard-read 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 9.0 on 2018-09-15 Note: The user must grant the clipboard-read permission.

In WebView Android version 66 on 2018-04-17 Note: The user must grant the clipboard-read permission.

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