Objects > selection
Returns a string containing only body content from the selection. Tags and attributes are ignored.
Controls the cursor Bidi (bi-directional) level.
Forces the selection object to encompass the element node passed as a parameter and all of its child nodes. This method is also a shortcut to usin
Removes a single Range object from the current selection (not from the document tree). If you have a multiple-range selection, you can iterate thr
Removes all Range objects from the current selection (not from the document tree). The selection collapses, and the rangeCount property value ch
Returns a reference to the range within a selection object whose zero-based numeric index matches the passed parameter. The parameter should be zero.
Moves the end (focus) boundary of the selection to the designated document tree node and offset within that node. The start (anchor) point does not
Deselects the current selection and sets the selection object's type property to None . There is no change to the content that had been select
Removes the current selection from the document tree. The node hierarchy adjusts itself by obeying the same rules as Range.deleteContents( ) .
Creates a TextRange collection object. This must be in anticipation of IE supporting multiple, discontiguous selections in the future.
Creates a TextRange object from the current selection object. After a statement like the following: var myRange = document.selection.createRange( );
Returns Boolean true if the current selection object contains a node passed as a parameter. The second parameter is supposed to let you loosen or
Collapses the current selection to a location at the start ( collapseToStart( ) ) or end ( collapseToEnd( ) ) of the selection object. Any previo
Collapses the current selection to a location specified by the two parameters. Any previously highlighted selection returns to normal display.
Deletes the content of the current selection in a document. For example, the event handler in the following tag deletes any selected text of the p
1-15 / 23 >
Powered by Linode.