TextRange.moveToElementText() (Method)

Expands the text range to encompass an HTML element.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyTextRange.moveToElementText(anObject)
Argument list:anObjectA reference to an object in the document

By passing an HTML Element object to this method, you can set the start and end points of the TextRange object to neatly bound the text of the HTML Element object.