r-it Posted June 17, 2009 Share Posted June 17, 2009 hi there, i am having a problem using an input type image as a button. the thing is i would like it to act like a input type button as opposed to an input type submit. i have an javascript onclick event for this button, and this works as intended, but then it goes to the page which in the form's action tag afterwards, is there any way of stopping this because even if i say return false it still does it, please help. Link to comment https://forums.phpfreaks.com/topic/162566-input-type-image-submits-regardless/ Share on other sites More sharing options...
rhodesa Posted June 17, 2009 Share Posted June 17, 2009 the point of an input type image is to have a submit button that is an image. if you want to run a javascript function on the click of an image, just do an image tag with an onclick Link to comment https://forums.phpfreaks.com/topic/162566-input-type-image-submits-regardless/#findComment-858029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.