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


JAVASCRIPT DHTML TUTORIALS » Node Operation » createControlRange »

 

'createControlRange()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var myControlR = document.body.createControlRange();
    myControlR.add(myT);
    var m = myControlR.length;
    alert("There are "+ m +" elements in the controlRange collection")

</script>
<input id="myT" type="button" value="Click me" 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
» createControlRange