View Full Version : [FF] designMode and caretPos

Apr 5th, 2007, 11:12 AM
If I have a document with designMode set to "on" and want to place the cursor at a specific place in the document how do I do it (without using the mouse or keyboard that is)...

Since it's not form elements I can't use select() or focus()... ?

Apr 5th, 2007, 05:08 PM
Create a Range that represents that caret position, then window.getSelection().addRange(myrange)