Click to See Complete Forum and Search --> : createTextRange, CaretPos ?


jsme
05-23-2003, 10:01 AM
If some one is aware of what 'createTextRange' & 'CaretPos' are I'de be very happy if you could explain. I could not find them in any tutorial or reference on JS. I suspect on is a method. But what do they do? Do they work in both IE & NN?

Jona
05-23-2003, 10:15 AM
createTextRange() is DOM-specific, so it will work cross-browser in DOM Level I compliant browsers.

caretPos is IE-only, and gets the current position of the "blinking text bar" in a textarea

Jona
05-23-2003, 05:39 PM
Shoot me, Dave! :p I couldn't find caretPos at MSDN, but it sounded so much like it existed... I thought I had seen some type of caretPos() method somewhere, though... So you're right, it must've been a user-defined prototype. And... About the createTextRange() method.. I thought it was cross-browser... Again, I didn't know but it always worked for me but I use IE too much... Thanks for clearing that up, though.