CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Aug 2006
    Posts
    7

    Question 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
  •  





Click Here to Expand Forum to Full Width

Featured