JavaScript Reference/Javascript Properties/htmlText
Версия от 21:30, 25 мая 2010; (обсуждение)
"htmlText" Example
<source lang="javascript">
<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>
</source>
"htmlText" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |TextRange | +----------------+--------------------------------------------------------------+
</source>
"htmlText" Syntax and Note
<source lang="javascript">
Note: Read-only property. Returns the object HTML content.
Syntax:
textRangeName.htmlText
</source>