<html> <body> <script language="javascript" defer="true"> function function1() { document.all.myScript.defer = false; } </script> <script id="myScript" language="javascript"> <input type="button" value=" onClick="function1();"> </script> </body> </html>