Shinji Posted September 8, 2006 Share Posted September 8, 2006 Is it possible to use your own image as the submit button? If so, how can you do it? Thanks Link to comment Share on other sites More sharing options...
Jack McKalling Posted September 8, 2006 Share Posted September 8, 2006 You can use an input element with type="image", or just an image element for that. But at least you would be applying onclick attributes to define it as a submitter. <input type="image" src="..." onclick="this.form.submit()" />Or:<img src="..." width=".." height=".." onclick="document.forms['MyForm'].submit()" />Notice the red will be the reference to the name in your form element. The "this.form" part of the input element's onclick is to refer to that element's form, elements that don't belong to a form like the <img /> don't also have a "this.form" so they should target it by using the document. Link to comment Share on other sites More sharing options...
Shinji Posted September 9, 2006 Author Share Posted September 9, 2006 Thanks! You guys really are geniouses i must say. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now