April 9th, 2004, 07:06 AM
How to make a submit button automatically click on page load?
Thanks in advance for any suggestions!
Last edited by sqwuade; April 9th, 2004 at 07:11 AM.
April 9th, 2004, 07:37 AM
Can u supply the form u are trying to make this event happen with. You may simply need an ON_LOAD function within your code. Although more information about your requirements is required.
April 9th, 2004, 07:38 AM
Why would u need this? you wouldnt collect very much information if u didnt give users time to enter it.
April 9th, 2004, 08:15 AM
I want to make this submit button click automatically when the page is loaded so the .mp3 file plays that says "Please make a selection" (This happens now if you click the submit button with out selecting anything from the dropdown menu):
The first option in the form is automatically selected already by using the "selected" function in the option tag like this:
<option value="MakeaSelection" selected>
Last edited by sqwuade; April 9th, 2004 at 08:19 AM.
April 9th, 2004, 11:38 AM
replace formname with the... name of your form
April 9th, 2004, 08:36 PM
OK, thanks for the advice qwertq! I'll give that a shot when I can and let you know how it works.
April 10th, 2004, 08:15 AM
I tried adding the following code in the <head> section and then also in the <body> section but it didn't work (name of the form is "songs")... Any idea what I'm doing wrong?
March 14th, 2013, 04:48 AM
Originally Posted by sqwuade
I am facing the same kind of issue, I'll be tryin to write the code this week, if I manage to make it work i'll write you a post in this thead explaining how I did it, otherwise you'll have to find the solution on your own
Cheers and hf coding!
March 20th, 2013, 12:47 AM
Somehow I suspect that he no longer has this issue...
Originally Posted by SwFlipNico
September 11th, 2013, 04:24 AM
<form action="(URL?)/yyy.php" method="post" id="h1">
<input type="hidden" name="LoginEmail" value="user [at] domain.com">
<input type="hidden" name="LoginPassword" value="mycleartextpassword">
<input type="submit" name="Authenticate" value="Login">
<input type="hidden" name="Action" value="1" >