onClick submit FORM

A

Anonymous

Guest
Hi, I'm using image as a Submit Button so I need to use a JavaScript function. But I don't know how to submit the FORM using Java Script. Plz help ...
 
Hi, I'm using image as a Submit Button so I need to use a JavaScript function. But I don't know how to submit the FORM using Java Script. Plz help ...

Ähh.. guys... i think you forgot about <input type="image" src="" />
That will work as a submit button inside the form...
 
seems to me that no as the question states that javascript is needed due to the usage of image.. this logicaly leads us to the next part: JS not needed when using a submit type button... :)
 
One solution is here,

you can set your html code like this:

<input src="images/img1.jpg" type="image" name="SUBMIT" >

now your image acts as submit button and onsubmit you can call javascript function.


All the best........
 
Back
Top