Javascript Reference
Categories: TextRange

javascript TextRange htmlText

@March 15, 2008, 1:22 a.m.
htmlTextFirefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a  

Read-only  

Specifies all HTML of the document for a given element when that element is used as the basis for a TextRange object. For example, if you create a TextRange for the body element (document.body.createTextRange( )), the htmlText property contains all HTML content between (but not including) the body element tags.

 
Example
 
var rangeHTML = document.body.createTextRange( ).htmlText;
 
Value

String.

 
Default

None.


Powered by Linode.