Objects >
TextRange
javascript TextRange moveEnd( ), moveStart( )
Moves only the end or start point (respectively) of the current text range by one or more units. An optional parameter lets you specify both the num
javascript TextRange moveToBookmark( )
See getBookmark( ).
javascript TextRange moveToElementText( )
Moves the current TextRange object's start and end points to encase the specified HTML element object. The resulting text range includes the HTML for
javascript TextRange moveToPoint( )
Collapses the text range to an insertion pointer and sets its location to the spot indicated by the horizontal and vertical coordinates in the brows
javascript TextRange parentElement( )
Returns an object reference to the next outermost element that fully contains the TextRange object.
javascript TextRange pasteHTML( )
Replaces the current text range with the HTML content supplied as a parameter string. Typically, this method is used on a zero-length text range obj
javascript TextRange queryCommandEnabled( )
Indicates whether the command can be invoked in light of the current state of the document or selection.
javascript TextRange queryCommandIndeterm( )
Indicates whether the command is in an indeterminate state.
javascript TextRange CommaqueryndState( )
Determines the current state of the named command.
javascript TextRange queryCommandSupported( )
Determines whether the named command is supported by the document object.
javascript TextRange queryCommandText( )
Returns text associated with the command.
javascript TextRange queryCommandValue( )
Returns the value associated with the command, such as the name font of the selection.
javascript TextRange select( )
Selects all the text that is included in the current TextRange object. This method brings some visual confirmation to users that a script knows ab
javascript TextRange setEndPoint( )
Sets the end point of the current TextRange object to the end point of another range that had previously been preserved as a variable reference.
<
16-29 / 29
Powered by Linode.