Monday, January 18, 2010

javascript: Image as a Non-Submit Button

To use an image as a button that doesn't submit your form following code can be used:


Your input tag will be look like this:
input type="image" src="image.png" onclick="return false"


If you are calling some method on 'onclick' than that method has to return false.


rizzz86

No comments: