diff --git a/blog_images/copy-text-to-clipboard-with-javascript.jpg b/blog_images/copy-text-to-clipboard-with-javascript.jpg new file mode 100644 index 000000000..65f06201b Binary files /dev/null and b/blog_images/copy-text-to-clipboard-with-javascript.jpg differ diff --git a/blog_posts/copy-text-to-clipboard-with-javascript.md b/blog_posts/copy-text-to-clipboard-with-javascript.md new file mode 100644 index 000000000..1e96ada5d --- /dev/null +++ b/blog_posts/copy-text-to-clipboard-with-javascript.md @@ -0,0 +1,57 @@ +--- +title: How can I copy text to clipboard with JavaScript? +type: question +tags: javascript,browser +authors: chalarangelo +cover: blog_images/copy-text-to-clipboard-with-javascript.jpg +excerpt: Learn how to programmatically copy text to clipboard with a few lines of JavaScript and level up your web development skills. +--- + +**Core functionality** + +A very common need when building websites is the ability to copy text to clipboard with a single button click. Javascript can easily do this in five short steps:hout the user selecting it or hitting the appropriate key combination on their keyboard. Javascript can easily do this in five short steps: + +1. Create a`