Log in

View Full Version : Resolved Text Area Content to Clip Board



bluewalrus
06-14-2010, 03:50 PM
Does anyone have or know where I can get code to copy the content in a text area (or a div?) to a the clients clipboard when the click a button or link to copy it?

liamallan
06-14-2010, 04:10 PM
i was looking into the same thing, and found this. (http://www.rodsdot.com/javascript/cross_browser_clipboard_copy_with_pop_over_message.asp)

it has a popup message too but i supose if u dont want it, u could remove the popup

djr33
06-14-2010, 07:53 PM
From what I know, this will be very unreliable: it's possible to automate "select all", but "copy" will only work in a very limited set of browsers.
So test some and at least you'll be able to get select all, and maybe copy.

bluewalrus
06-14-2010, 11:22 PM
Well this is just for web site admin and to speed the process up so I think it should be fine for that.

liamallan
06-15-2010, 03:05 AM
the link above is a cross browser script, works on ie and firefox and maybe more browsers