Faqts : Computers : Programming : Languages : JavaScript

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

3 of 5 people (60%) answered Yes
Recently 3 of 5 people (60%) answered Yes

Entry

How do textranges in IExplorer work to get the same value as getSelection in Navigator?

Dec 1st, 2001 16:47
Dave Clark, Niels van Kesteren, http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_TextRange.asp


Niels,
Selected text, in IE, can be identifed as follows:
var textRangeObject = document.selection.createRange();
You can see the characteristics of the TextRange object at the URL 
listed above.
OK?   ;-)
Take care,
Dave Clark