cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv headernumbered-list123split-screen
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.

Comments

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

    etctecterera
    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
    copy"

    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.
Loading...
Loading...