Forum Moderators: open

Message Too Old, No Replies

Copy Selected Text in NN7.0+ and IE5+

Is it possible?

         

Dr_Jive

2:46 am on Jul 26, 2003 (gmt 0)

10+ Year Member



Hi,
I'm a relatively new member, but have been reading along for months. I'm in search of a js function that will work in NN7.0 that will allow a user to select the text in a textarea and automatically copy it to the clipboard.

I have it working in IE 5.0+, and am starting to doubt if it is even possible in the *now defunct* Netscape.

Any help would be greatly appreciated...

Dr_J

hakre

8:43 am on Jul 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tested it?

MonkeeSage

9:29 am on Jul 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is not possible, AFAIK. NN doesn't allow for creating arbitrary ranges within textareas; the best you can do is select all the text (e.g., document.getElementById('textareaID').select(); ).

Shelumi`El
Jordan

S.D.G