script 'text' Example : Script : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  HTML   » [  Script  ]   
 



script 'text' Example

Please note that some example is only working under IE or Firefox.

    
<html>
<body>
<script language="JavaScript" id="myS">
    function function1() {
        var m = document.all.myS.text; 
        alert(m);
    }
</script>
<input type="button" value="View the script code for function1() function" 
       onclick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.  Script 'language' Example
2.  Script 'defer' Example
3.  'event' Example
























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