javascript TextRange htmlText

htmlTextNN n/a IE 4(Win) 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.


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