extend method
Moves the focus of the selection to a specified offset within the given node.
Syntax
HTMLSelection.extend(parentNode, offset);Parameters
- parentNode
-
Type: Node
- offset
-
Type: Integer
Return value
This method does not return a value.
Standards information
Remarks
A selection can be extended in either direction (forwards or backwards), depending if the new focus (offset) comes before or after the selection's current anchor in the document.
See also
Show: