I'm writing a script where there will be a button that, when pressed, all data in a <form>
, <div>
or <p>
should be copied to the system clipboard for further use.
I've tried various things but with no luck. So I was wondering if you guys have a solution in either JS or PHP (if exists).
NOTE: users will be using various browsers
IE7
Google Chrome
FireFox
Thanks.