script 'text' Example : Script : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Script »

 

script 'text' Example



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

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Script