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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with onClick="Submit()"

Status
Not open for further replies.

sjf

Technical User
Jan 1, 2001
56
AU
Hiya All,

I have the following line submitting a form:
<input type=&quot;image&quot; src=&quot;_images/proceed_button.gif&quot; onClick=&quot;submit()&quot;>

It submits the form perfectly, no problem there but for some reason it does it submits it twice, that's right 2 times??? Any ideas?
 
Any form element of type=&quot;image&quot; - submits the form automatically for you, so you don't need the call to submit() from onClick. Just leave out the onClick bit.;-)
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Ta, works perfectly ....
sjf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top