Click to See Complete Forum and Search --> : click and copy hidden text


Laurie225
12-07-2007, 12:59 PM
I have a website that offers codes to the public. However, I would like for my codes to click and copy to clipboard automatically when someone clicks on the code. So I don't have to display the whole code on the page. Just maybe in a window. Can someone tell me how to do this?
Thanks!

dtm32236
12-07-2007, 03:49 PM
There (http://www.webmaster-talk.com/javascript-forum/23822-javascript-copy-code-to-clipboard.html) are (http://javascript.about.com/library/blcopy.htm) tons (http://javascript.internet.com/forms/select-and-auto-copy.html) of scripts (http://www.dynamic-tools.net/toolbox/copyToClipboard/) out there (http://personalweb.about.com/od/copypastejavascripts/a/404_3scripts.htm) but it seems that they only work in IE.