<html> <body> <script id="myScript" language="JavaScript"> function function1() { alert(document.all.myScript.language); } </script> <input type="button" value="Scripting Language" onClick="function1();"> </body> </html>