Solved

IE Hover bug. Fix without hash (pound sign) in href?

Posted on 2006-11-07
4
755 Views
Last Modified: 2008-02-01
IE only allows the hover property on anchor (<a href..>) tags.

The problem with the anchor tags is that they need a value in the "href" attribute.

Historically this is set to "#", which is essentially a "do nothing" link.

My problem is that the page jumps up as the user clicks on that link. I don't want that, as the link just activates an AJAX effect on the page.

I also tried setting the href to simply "javascript:;" to see if that would work, but nothing.

Any ideas for a solution to this?
0
Comment
Question by:renesisx
  • 2
  • 2
4 Comments
 
LVL 1

Author Comment

by:renesisx
ID: 17890831
Oh, and I also tried setting the onclick attribute to "javascript:return false;" which didn't help either.

Plus I tried an anchor tag that didn't have a href, but just an "id". The hover tag didn't work at all then.
0
 
LVL 33

Accepted Solution

by:
hongjun earned 500 total points
ID: 17890858
try this

<a href="#" onclick="return false;">LINK</a>
0
 
LVL 33

Expert Comment

by:hongjun
ID: 17890868
Put the return false on onclick event
0
 
LVL 1

Author Comment

by:renesisx
ID: 17891302
Damn, just needed me to remove the "javascript:" from the onclick.

Thanks :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now