javascript TextRange moveToElementText( )

moveToElementText( ) NN n/a IE 4(Win) DOM n/a  

moveToElementText(elementObject)

  

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 the element, as well.

 
Parameters
 
  • A scripted reference to the object. This can be in the form of a direct reference (document.getElementById("elementID") or a variable containing the same kind of value.
 
Returned Value

None.


2113,Nickname,Homepage or email,Comments here,Add comment