Form Push Buttons

P

Pam Davey

Is there a way to use an image (such as an interactive button) as a form push
button? I would like to have the look and behavior of my form's Submit/Reset
buttons match the rest of my site.

Thank you.
 
M

MD Websunlimited

Hi Pam,

Yes, but you'll need to use CSS to accomplish and I'm not sure the results will be what you want.

<style type="text/css">
..formsub {
background-image: url(http://www.websunlimited.com/order/images/cookies.jpg);
}
</style>

<input type="submit" id="formsub" >

Another way to accomplish is to use an image with a hyperlink that uses JavaScript to submit

<a href="javascript:this.form.submit();"><img src="myimage.jpg" width="50" height="50" >

Note the image submit will bypass any form onsubmit handlers, i.e., the FP validation function call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top