[Javascript] IE onclick problem

tedd tedd at sperling.com
Fri Apr 18 11:53:27 CDT 2008


At 8:40 AM -0700 4/17/08, Howard Jess wrote:
>And finally, it's *far* better to leave this attribute out of
>markup altogether, and do everything in javascript:
>
>     <form id="someform"> .... </form>
>
>     <script type="text/javascript">
>     window.onload=function() {
>       var form=document.getElementById('someform');
>       if (form) form.onsubmit = checkMyForm;
>     }
>     </script>
>
>--
>hj

Yes, that is much better.

Thanks,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list