script 'text' Example : Script « HTML « JavaScript DHTML






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> 








Related examples in the same category

1.Script 'language' Example
2.Script 'defer' Example
3.'event' Example
close