faqts : Computers : Programming : Languages : JavaScript : Forms : TextAreas/TextFields

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

72 of 109 people (66%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can replace a text selection in text field/text area with some other text in Netscape?

May 27th, 2000 07:37
Martin Honnen, Joe T,


You can't. NN4 only allows access to 
  document.getSelection()
which doesn't include selection in a text field/text area. Furthermore 
you cannot manipulate the selection has you can in IE.