htmlText

This property is used to return all the HTML coding between the BODY tags, not including the opening and closing BODY tags. It should be noted that the textRange is not created by using this property. Instead, use the createTextRange() method.

syntax:

document.body.createTextRange().htmlText

This Property is used to access attributes of the following:

textrange