Skip to main content
Replaces the clipboard contents with the supplied value. Useful for priming a paste step or simulating data dragged in from outside the browser.

Parameters

Shorthand

Value as a string, boolean, or null.

Examples