Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto - Submit

Status
Not open for further replies.

PepperPepsi

Programmer
Aug 3, 2000
241
US
Hi, i'm trying to do a auto submit function when user login to my page, following is my code<br><br>document.write (&quot;&lt;FORM ACTION=auto.html&gt;&quot;)<br>document.write (&quot;&lt;INPUT TYPE=HIDDEN.... some hidden field&quot;)<br>document.write (&quot;&lt;/FORM&gt;&quot;)<br>document.forms[0].submit()<br><br>it does go to the auto.html page, however it will open a new window, is there any way i can make it to load to the same window?&nbsp;&nbsp;<br><br>PS. i try self.document.forms[0].submit() but it still pop up a new window, and for some reason, i don't want to use &quot;location&quot; to redirect the page.<br><br>thanks <br>Pepsss
 
did you try t set the target ??? something like : <br>document.write (&quot;&lt;FORM ACTION=auto.html target='_self'&gt;&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top