>I've got a situation as follows... > >+-------------------------+ >| form.... | >| (cancel) (submit) | >+-------------------------+ > >Both buttons are actually image input tags as I use custom images rather >than simply the generic buttons. The default action (e.g. when you hit >Enter while editing a field) goes to the cancel button. I'd like the >submit button to be the default action. Is there any easy way to do this?
If you make action= attribute on your form tag the default action then you can do something like this: (default button) <input type="image" src="/images/continueButton" class="SearchSubmit"> (Other Option Button) <input type="image" src = "/images/submitButton" class="SearchSubmit" onClick="document.searchForm.action='search.cfm'"> hth, larry assuming that searchForm is the name of your form document. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182430 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54