JavaScript DHTML/Node Operation/createTextRange — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 13:02, 26 мая 2010
"createTextRange()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1() {
var myNode = document.body.createTextRange(); myNode.text = "This is the new text";
} </script> <button onclick="function1();">Create text range</button> </body> </html>
</source>