Clipboard API
Clipboard API
Section titled “Clipboard API”Introduction
Section titled “Introduction”The Clipboard API provides asynchronous access to the system clipboard for reading and writing text and other data.
Topics Covered
Section titled “Topics Covered”- Writing — Copying text and data to the clipboard
- Reading — Pasting text and data from the clipboard
- Permissions — Security requirements for clipboard access
Summary
Section titled “Summary”navigator.clipboard.writeText() for copying, readText() for pasting. Requires HTTPS and user interaction. Async API returns Promises.