---
title: "Discussion on \"How to use the Clipboard API to Cut, Copy, and Paste in JavaScript\" | Hashnode"
description: "Discussion on \"How to use the Clipboard API to Cut, Copy, and Paste in JavaScript\". Until 2020, implementing cross-browser cut, copy, and paste options in web apps required convoluted synchronous document.execCommand() code which rarely worked as expected. This is now deprecated in favor of a new asynchronous Clipboard API. Support ..."
url: "https://hashnode.com/posts/javascript-clipboard-api-cut-copy-paste/63405a3c03bfafa71143ad64"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use the Clipboard API to Cut, Copy, and Paste in JavaScript](https://blog.craigbuckler.com/javascript-clipboard-api-cut-copy-paste?utm_source=hashnode&utm_medium=feed)

Until 2020, implementing cross-browser cut, copy, and paste options in web apps required convoluted synchronous document.execCommand() code which rarely worked as expected. This is now deprecated in favor of a new asynchronous Clipboard API. Support ...

Oct 7, 2022 · 7 min read · blog.craigbuckler.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#apis](https://hashnode.com/tag/apis)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#browsers](https://hashnode.com/tag/browsers)

## Written by

[Craig Buckler](https://hashnode.com/@craigbuckler)

@craigbuckler · Exmouth, UK

  
[View profile](https://hashnode.com/@craigbuckler)

Freelance UK full stack web developer who writes tutorials now and again.

I am a freelance UK full-stack web developer with a few decades experience.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
