css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

A demonstration of clipboard activity using JavaScript only.

Article URL: http://www.sitepoint.com/javascript-copy-to-clipboard/

Forked from Craig Buckler's Pen JavaScript clipboard integration.

This Pen is a fork of Craig Buckler's Pen JavaScript clipboard integration.


  1. Like it! And it works great with input but... I've tried to use it with a

    And call the #Eerste But it does not work for DIV. Can Yout take a look at that? Regards Jan
  2. Hello, I have added the code:


    Dit is een test

    To explain that "DIV" not works. Pitty. Perhaps it is not possible? regards/groeten Jan

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.