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?

Apr 5th, 2008 20:06
ha mo, 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
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com