Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button Behavior

Status
Not open for further replies.

LittleNFiesty

Technical User
Sep 26, 2006
46
US
I've added a generic button to my page (see code below) but when you move your mouse over it you don't get the "hand" to show it's a link...Why, or what do I need to change in the code?

<button name="CustomerLogin" value="Customer Login" type="submit" class="BottomNav" style="border: 2px; background-color: #005952; width: 200px; color:#FFF; font-size: 11px;" onclick="window.location.href=' >Customer Login</button>
 
Why would you get the hand, if its not a link? Only links produce the hand icon on mouseover.

If you want a hand use a link <a href="...">...</a>, or you can fake it by styling the button to produce a hand onhover.

.BottomNav:hover{
cursor:pointer;
}

But I don't see that point in all that Javascript and styling to simulate a link. why not use a link to begin with?


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top