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?

1 of 5 people (20%) answered Yes
Recently 1 of 5 people (20%) answered Yes

Entry

i use createrange to get the select part ot text but i do not know how can i get its potion(index)

Sep 3rd, 2007 17:59
Dave Clark, farzane sh,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Farzane,
     Perhaps this demo page will help you with that -- though this is 
IE-only:
http://www.daveclarkconsulting.com/research/edit_caret_position.html
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~