How would I implement 'copy url to clipboard' from a link or button using javascript or dojo without flash -


i got stucked in implementing feature on web application. other possibilities using flash content. explain how can achieve using plain javascript or dojo.

i have been working on exact same issue while. me flash isn't viable solution came simple work around:

<button onclick="prompt('press ctrl + c, enter copy clipboard','copy me')">click copy</button>

it requires work on users end @ least doesn't require flash or external libraries.

example fiddle


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -