Solved

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

Posted on 2006-11-07
4
757 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

785 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