DEV Community

Joe Steinbring
Joe Steinbring

Posted on • Originally published at on

How do you interact with the clipboard using JavaScript?

This should be a pretty quick post. I wanted to explore how to Copy/Cut/Paste on a webpage. I figured how to do Copy and Cut pretty easily but Paste was a different story.

So, why isn’t paste working in the pen? It looks like as of Chrome 39, you can only do it after declaring the clipboard permissions in the manifest file. Am I going to do that for this demo? Of course not. 🙂

Have a better way to do this … or a easy solution for fixing paste? Please drop a comment, below.

Discussion (0)