TextRange.htmlText (Property)

Returns a text range as HTML source.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyTextRange.htmlText

This is somewhat similar to the innerHTML of an Element object. In this case the start and end points of the TextRange are taken as the delimiting boundaries. The HTML contained within those boundaries can be returned to your script when the property is read.

Because this property is read-only, you will need to use the pasteHTML() method to replace the HTML bounded by a TextRange object.

See also:TextRange.pasteHTML(), TextRange.text

Property attributes: