try
document.MainForm.submit()
At 19:00 05/07/01 -0500, you wrote:
>Hello everybody!
>
>I am having a weird problem that I hope someone can help me with:
>
>I have a form like so:
> <FORM action=File.asp method=post id=main name="MainForm">
>which I am trying to submit with this javascript (all in IE5.01):
> document.all("main").submit();
>
>It crashed with an error: Object doesn't support this property of method.
>
>I tried
> alert(document.all("main").name);
>and it returns "MainForm"
>I also tried
> document.all("main").reset();
>and it works fine.
>
>
>What I am doing wrong ?????
>Any help would be greatly appreciated!
>Thanks
>Greg
>