Javascript Reference
Categories: selection

javascript selection extend( )

@March 15, 2008, 1:22 a.m.
extend( )Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

extend(nodeReference, offset)

  

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 move with this method.

 
Parameters
 
  • Reference to a text or element node in the document tree in which the selection's focus (end point) should move.
  • Integer count of characters or nodes within the nodeReference node where the collapsed selection should move. The count is relative to the start of the node. Units are character for text nodes, nodes for elements.
 
Returned Value

None.


Powered by Linode.