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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.