Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-11-07
4
Medium Priority
?
763 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

721 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