Clipboard API
A Web API provided by browsers for reading from and writing to the system clipboard. It supports writing plain text and rich media data such as images, and is typically invoked within a secure context and in response to a user gesture.
Timeline (last 90 days)
Modern browsers mainly write plain text via navigator.clipboard.writeText() and write rich media data such as images via navigator.clipboard.write() together with ClipboardItem.
Writing images using navigator.clipboard.write() requires the page to be in a secure context (HTTPS or localhost) and is usually called within a callback triggered by a user gesture.
Image copying is relatively rare in web applications, subject to multiple constraints from browser implementation differences, permission policies and secure contexts, and support levels also vary between mobile Safari and Chrome.
All Facts (3)
Modern browsers mainly write plain text via navigator.clipboard.writeText() and write rich media data such as images via navigator.clipboard.write() together with ClipboardItem.
50%UnverifiedWriting images using navigator.clipboard.write() requires the page to be in a secure context (HTTPS or localhost) and is usually called within a callback triggered by a user gesture.
50%UnverifiedImage copying is relatively rare in web applications, subject to multiple constraints from browser implementation differences, permission policies and secure contexts, and support levels also vary between mobile Safari and Chrome.
50%