Javascript Reference
Objects > selection
javascript selection empty( )
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
javascript selection extend( )
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
javascript selection getRangeAt( )
Returns a reference to the range within a selection object whose zero-based numeric index matches the passed parameter. The parameter should be zero.
javascript selection removeAllRanges( )
Removes all Range objects from the current selection (not from the document tree). The selection collapses, and the rangeCount property value ch
javascript selection removeRange( )
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
javascript selection selectAllChildren( )
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
javascript selection selectionLanguageChange( )
Controls the cursor Bidi (bi-directional) level.
javascript selection toString( )
Returns a string containing only body content from the selection. Tags and attributes are ignored.
< 16-23 / 23

Powered by Linode.