I found this Youtube video demonstrating how you can copy text to the clipboard using JavaScript: https://www.youtube.com/watch?v=9-vBx7F0lns. I created the following Codepen to save you the hassle of coding out the example:

See the Pen Copy to clipboard by David Fox (@foxbeefly) on CodePen.

Note the use of Font Awesome

By MisterFoxOnline

CAT Educator

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.