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>