setBaseAndExtent method

Sets the anchor (base) and focus (extent) boundary points for the selection.

Syntax

HTMLSelection.setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset);

Parameters

anchorNode

Type: Node

anchorOffset

Type: Integer

focusNode

Type: Node

focusOffset

Type: Integer

Return value

This method does not return a value.

Standards information

See also

HTMLSelection

 

 

Show: