JavaScript Reference/Javascript Properties/htmlText

Материал из Web эксперт
Перейти к: навигация, поиск

"htmlText" Example

    
<html>
<head>
<script language="JScript">
function function1() {
    var b = document.all.tags("input");
    alert(b[0].createTextRange().htmlText);
}
</script>
</head>
<body topmargin="50" leftmargin="100">
<input type="button" value="Click here" onclick="function1();">
</body>
</html>



"htmlText" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |TextRange                                                     |
+----------------+--------------------------------------------------------------+



"htmlText" Syntax and Note

Note:
Read-only property. 
Returns the object HTML content.
    
Syntax:
    
textRangeName.htmlText