[Javascript] selection of text in Mozilla

Peter Brunone peter at brunone.com
Sat Jan 14 14:10:58 CST 2006


textField.setSelectionRange(start, finish)

...just like we do with EasyListBox :)

 From: Iztok Polanic iztok.polanic at amis.net

Hi!

I know you can select text in Firefox with 
window/document.getSelection(). But this only works, if the text is 
inside window/document object. But how to do this, if a user selectes' a 
text inside  (<form>) tag?<br><br>-- <br>Bye,<br><br>Iztok<br><br>_______________________________________________<br>Javascript mailing list<br>Javascript at LaTech.edu<br>https://lists.LaTech.edu/mailman/listinfo/javascript<br><br><br>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060114/5ef5b8d2/attachment.htm>


More information about the Javascript mailing list