Is it possible to make a button that when clicked, copies text from a box.
Instead of manually selecting the contents and then copying with something like control+c.
I don't know if this is possible with html alone, could anyone help?
| SitePoint Sponsor |
Is it possible to make a button that when clicked, copies text from a box.
Instead of manually selecting the contents and then copying with something like control+c.
I don't know if this is possible with html alone, could anyone help?


Hi funfunfun,
no not really in any cross browser way. IE will let you do something but FF wont give access to the clipboard.
The best you can really get is to select all and then get the user to do the rest.
That is if you want cross browser of course!
Welcome to the forums
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Bookmarks