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


JAVASCRIPT DHTML TUTORIALS » Node Operation » moveToElementText »

 

'moveToElementText()' Example



    
<html>
<body>
<script language="JavaScript">
function function1(){
   var myRange1 = document.body.createTextRange();
   myRange1.moveToElementText(myDiv);
   myRange1.findText('test');
   myRange1.select()

</script>
<div id="myDiv" style="background-color:blue; width:250; height:200;">Testing</div>
<input type="button" value="MoveToElementText" onclick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» moveToElementText