'controlRange' Example : controlRange : Javascript Collections : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP


JavaScript Reference  »  Javascript Collections   » [  controlRange  ]   
 



'controlRange' Example

    
<html>
<body>
<script>
function loadform(){
    var elem = document.createElement('<input id="test" type="text" value="testing">')
    document.body.insertBefore(elem);
    var range = document.body.createControlRange();
    range.add(document.all.test);
    alert(range.item(0).value)

</script>
<body>
<button onclick="loadform();">Load Control Range on the page</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'controlRange' Syntax Parameters and Note
2.  'controlRange' JavaScript properties and JavaScript methods
























Home| Contact Us
Copyright 2003 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.