Using this very simple piece of javascript, you can use an image to submit or reset your forms!
1.In Dreamweaver select the image you want to use to submit or reset you form.
2. In the link Box of the Properties palette type the following javascript
javascript:document.yourformname.submit()
javascript:document.yourformname.reset()
Save the document and test!
So now now you are able to use the images that you took so long to make to send your forms!
Alternativley you can add this code at source view
<a href="javascript:document.form1.submit()"><img src="images/your_image.jpg" width="189" height="192" border="0"></a>
<a href="javascript:document.form1.reset()"><img src="images/your_image.jpg" width="189" height="192" border="0"></a>
Comments
submit button add
Hi all -
did the image to submit/reset a form ... works great ... only what do i need to add to the submit code to get it to email to my box? currently, using just the javacode it submits and i have no idea where it went :) thanks
You must me logged in to write a comment.