---
title: "Discussion on \"How to Copy Text to the Clipboard using JavaScript\" | Hashnode"
description: "Discussion on \"How to Copy Text to the Clipboard using JavaScript\". A simpler way to copy with the Clipboard API"
url: "https://hashnode.com/posts/how-to-copy-text-to-the-clipboard-using-javascript/605c0bf278c4742436d5049a"
---

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

Discussion

# [How to Copy Text to the Clipboard using JavaScript](https://blog.alyssaholland.me/how-to-copy-text-to-the-clipboard-using-javascript?utm_source=hashnode&utm_medium=feed)

A simpler way to copy with the Clipboard API

Mar 25, 2021 · 3 min read · blog.alyssaholland.me  
Updated Mar 13, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

@AlyssaCodes

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

Programming. Productivity. Positivity

Welcome to my blog 👋🏽 I'm a Front-End Developer with a passion for learning! I write about Programming 👩🏽‍💻 and Productivity Tips ✅

## Responses 1

Markdown supported · ⌘↵ to post

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Mar 25, 2021](https://hashnode.com/posts/how-to-copy-text-to-the-clipboard-using-javascript/605c0bf278c4742436d5049a/comment/605cd2fbfc7d47424f0cb572)

Wow, bookmarked! I will definitely use this method going forward.

Thanks for writing about this, [Alyssa Holland](https://hashnode.com/@Code_Runnings).

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Mar 27, 2021](https://hashnode.com/posts/how-to-copy-text-to-the-clipboard-using-javascript/605c0bf278c4742436d5049a/comment/605cd2fbfc7d47424f0cb572#reply-605f44c35aa4944ee40f8bd1)

Thanks for the comment [Edidiong](https://hashnode.com/@didicodes)! Glad you found it useful!
