Copy Selected Text in JavaScript


/ Published in: JavaScript
Save to your folder(s)

Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:

URL: http://www.apphp.com/index.php?snippet=javascript-copy-selected-text

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.