On Dec 17, 2007 2:28 PM, James Leslie <[EMAIL PROTECTED]> wrote: > I'm trying to use some code so that submit buttons on a form are (using > JavaScript if available) removed and replaced with anchor tags that then > have event handlers added to them to submit a form if clicked. The reason > for this is that I have some tabs I want to style in a similar way though > some are anchors and some are inputs and it means I should be able to style > submit buttons in the same way as anchor tags whilst managing to keep the > text resizable (as opposed to using an image for the submit button). >
This might be a stupid question, but why can't you just style your form submit buttons to look like links using CSS? button { border: 0; background: none; text-decoration: underline; color: #006; cursor: pointer; } Your button looks and acts (almost) exactly like a regular link. - Matthew ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************