Jump to content

user interface "buttons"


chadmichael

Recommended Posts

I want to have an image based link / button. The link / button will fire a javascript function. I'm trying to discern if there is an obvious choice / preference between using a button element or an anchor element for this. Any suggestions or info regarding the implications of this decision?

Link to comment
Share on other sites

I want to have an image based link / button.  The link / button will fire a javascript function.   I'm trying to discern if there is an obvious choice / preference between using a button element or an anchor element for this.  Any suggestions or info regarding the implications of this decision?

Some older browsers only support onmouseover etc on the anchor tag, so if you wan't to reach max audience then that might be best bet.
<a href="#" onMouseOver="go()"><img src="xxx.gif" /></a>

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...