[Javascript] automatic form submission
Paul Novitski
paul at novitskisoftware.com
Thu Sep 23 15:45:24 CDT 2004
Question: Is it your goal to have the form submit automatically as soon as
the page loads, without allowing time for the human to interact with the form?
You can alternatively use the syntax:
window.onload = functionName;
outside of any javascript function.
If this doesn't work:
window.onload = document.Myform.submit;
[sorry I'm too rushed to double-check]
then you should be able to do this:
window.onload = jsSubmitForm;
function jsSubmitForm()
{
document.Myform.submit;
}
Paul
At 12:48 PM 9/23/2004, Innerlab wrote:
>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