|
I'm using a Javascript that allows users to click a button on my site which copies any selected content to the clipboard.
I'm wondering if it's possible to save a step so that the Javascript allows them to click on any text content on the webpage and, with the click, have the content in the div or span they're clicking on copied to the clipboard?
In other words, I want to save them the trouble of highlighting the content and then clicking the button. I want them, just by clicking on a word in that div or span to have it select all the content of that div/span and copy it to the clipboard.
Can it be done?
Andrew
|