'inRange()' Example : inRange : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » inRange »

 

'inRange()' Example



    
<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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» inRange