[Javascript] automatic form submission

Innerlab innerlab at hotmail.com
Thu Sep 23 14:48:32 CDT 2004


In my code, right after a form I wrote:

<script type="text/javascript">MyForm.Submit();</script>

It doesn't seem to be working. I tried the above both inside and outside the form tag.
Also, I tried something like :

<div onLoad="MyForm.submit();" ></div>

with no luck. It problaby works in the body tag (would it?), but I cannot do that because this form is in a server side include.

Any suggestions (except a button!)

Thanks in advance.






More information about the Javascript mailing list