Hello all i need help in automating this webmail script of mine. I need it to just act as a submit button once the page has loaded. However, it does not seem to work when i have the onload command in the body. But it DOES work when i simply click on the submit button... I've even tried a timer but still has the same results... what gives?
Code:
<BODY BGCOLOR="#e8e8e8" onload="document.FrmLogin.submit()">
<form name="FrmLogin" method="post" action="login.aspx" id="FrmLogin">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTM3NTQ1MDg0OTt0PDtsPGk8MT47aTwzPjs+O2w8dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0Oz47bDxcPExJTksgUkVMPSJzdHlsZXNoZWV0IiBUWVBFPSJ0ZXh0L2NzcyIgSFJFRj0iL01lV2VibWFpbC9lbnRlcnByaXNlL3NraW5zL2VudGVycHJpc2UvbWUuY3NzIiBcPiA7Pj47Oz47Pj47dDw7bDxpPDA+O2k8MT47aTwyPjtpPDQ+O2k8Nj47aTw3PjtpPDg+O2k8OT47aTwxMD47aTwxMT47aTwxMj47PjtsPHQ8O2w8aTwwPjs+O2w8dDxwPGw8VGV4dDs+O2w8XDxJTUcgc3JjPScvTWVXZWJtYWlsL2VudGVycHJpc2Uvc2tpbnMvZW50ZXJwcmlzZS9sb2dpbi13aW5kb3dfbG9nby5naWYnXD47Pj47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0Oz47bDxQbGVhc2UgZW50ZXIgeW91ciBVc2VybmFtZSBhbmQgUGFzc3dvcmQgdG8gbG9nIG9uLjs+Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPFRleHQ7PjtsPFVzZXJuYW1lOjs+Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPFRleHQ7PjtsPFBhc3N3b3JkOjs+Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPFRleHQ7PjtsPFNraW46Oz4+Ozs+Oz4+O3Q8dDw7dDxpPDM+O0A8QmFzaWM7RGVzZXJ0O0VudGVycHJpc2U7PjtAPEJhc2ljO0Rlc2VydDtFbnRlcnByaXNlOz4+Oz47Oz47dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0Oz47bDxMYW5ndWFnZTo7Pj47Oz47Pj47dDx0PHA8cDxsPERhdGFWYWx1ZUZpZWxkO0RhdGFUZXh0RmllbGQ7PjtsPEtleTtWYWx1ZTs+Pjs+O3Q8aTw1PjtAPEdlcm1hbjtFbmdsaXNoO1NwYW5pc2g7RnJlbmNoO0l0YWxpYW47PjtAPGRlO2VuO2VzO2ZyO2l0Oz4+O2w8aTwxPjs+Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPExvZ2luOz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDxSZW1lbWJlciBteSBzZXR0aW5ncyBmb3IgdGhpcyBjb21wdXRlcjs+Pjs+Ozs+O3Q8O2w8aTwwPjs+O2w8dDxwPGw8VGV4dDs+O2w8JmNvcHlcOyBNYWlsRW5hYmxlIFB0eS4gTHRkLiwgMjAwMS0yMDA2LiBBbGwgcmlnaHRzIHJlc2VydmVkLlw8QlJcPlRoaXMgY29tcHV0ZXIgcHJvZ3JhbSBpcyBwcm90ZWN0ZWQgYnkgY29weXJpZ2h0IGxhdyBhbmQgaW50ZXJuYXRpb25hbCB0cmVhdGllcy5cPEJSXD5VbmF1dGhvcml6ZWQgcmVwcm9kdWN0aW9uIG9yIGRpc3RyaWJ1dGlvbiBvZiB0aGlzIHByb2dyYW0sIG9yIGFueSBwb3J0aW9uIG9mIGl0LFw8QlJcPm1heSByZXN1bHQgaW4gc2V2ZXJlIGNpdmlsIGFuZCBjcmltaW5hbCBwZW5hbHRpZXMuOz4+Ozs+Oz4+Oz4+Oz4+O2w8Y2hrUmVtZW1iZXI7Pj4=" />
			<CENTER>
<div align="center"><b> Username:</b> 
<input name="txtUsername" type="hidden" class="ME_Input" id="txtUsername" style="width:170px" value="ME@aol.com" />                          
                            <b> <br>
                            Password:</b>                            
<input name="txtPassword" type="hidden"" class="ME_Input" id="txtPassword" style="width:170px" value="XXXXXXX" />                          
                            <b><br>
                            Skin:</b><b>
<select name="ddlSkins" id="ddlSkins" style="display: none;"><option selected="selected" value="Enterprise">Enterprise</option></select>
                            </b> <b><br>
                            Language:</b><b>
<select name="ddlLanguages" id="ddlLanguages" style="display: none;"><option selected="selected" value="en">English</option></select>
                                                    <br>
<input type="submit" name="btnLogin" value="Login" id="btnLogin" class="ME_LoginButton" style="CURSOR:pointer" />
</div>
</CENTER>
</form>
Any help would be great!

David