JavaScript DHTML/Node Operation/inRange
Версия от 13:02, 26 мая 2010; (обсуждение)
"inRange()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1() {
var myText = document.body.createTextRange(); var myText2 = document.all.myText.createTextRange(); alert(myText.inRange(myText2));
} </script> <textarea id="myText" style="width:600; height:100;">Sample textarea text</textarea> <button onclick="function1();">InRange</button> </body> </html>
</source>