View Single Post
Old 01-22-2010, 03:09 PM   PM User | #7
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Quote:
Originally Posted by SiM99_wrk View Post
I don't want the image to submit the form, that's the point.
Then why do you use an image input? Why do you need a form, if you don't want to submit data?

Once again, the submit action can be stopped only within the FORM element while using return false the the onsubmit event.
Code:
<form action="" onsubmit="return false">
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Last edited by Kor; 01-22-2010 at 03:11 PM..
Kor is offline   Reply With Quote