|
-
August 2nd, 2006, 10:07 AM
#1
Can I manually set selection in document
Can I manually set selection for some part of document?
...in other words somethin' like 'setSelection()' opposite for 'document.getSelection()' method.
In DOM Level 2 specification i find Range object:
myRange = document.createRange();
This object has some methods includin' myRange.setStart(), myRange.setEnd(), which allow manualy set selection.
This object is supported by Opera and FF BUT!!! doesn't supported by IE.
Instead IE has document.selection.createRange() and
document.body.createTextRange();
But how I can set selection in IE??? Is it possible?
TIA
Last edited by =vd=; August 2nd, 2006 at 02:23 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|