Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 495897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:38:05+00:00 2026-05-13T05:38:05+00:00

What is the most cross-browser effective way to style anchor tags without href’s? I

  • 0

What is the most cross-browser effective way to style anchor tags without href’s?

I found this article on making the styles apply in older versions of IE by throwing in an href=”#”. However, I am applying this about halfway down the page and find that it acts as it should; brings you to the top of the page again. This makes the page ‘jump’ which is a bad experience for anyone trying to use the bottom half of the page. But…when I take the href’s out IE will not apply the css styles.

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:38:06+00:00Added an answer on May 13, 2026 at 5:38 am

    Use markup like this…

    <a id="myLink" href="JavascriptDisabled.htm">Jump</a>
    

    JavascriptDisabled.htm should be a page that says Javascript must be enabled for this to work!

    Then you can override the default click functionality of the link with unobtrusive Javascript like this…

    window.onload = function() {
      document.getElementById("myLink").onclick = function() {
        //Execute your Javascript
        return false; // This prevents the redirect
      }
    }
    

    So people with Javascript enabled get the correct functionality. Those with Javascript disabled will actually get a message that tells them why it’s not working. I’d say it’s a win/win!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out the most efficient way to ensure cross-browser compatibility.
What would be the most rational, cross-browser compatible way to create an element which
I know jQuery does most when it comes to cross-browser issues. I just wanted
I normally work with jQuery, which takes away most of the cross browser pain
<video> element is upcoming cross browser standart for playing videos, while most videos out
How to make cross size and cross browser compatible print CSS for World's most
What is the most consistent, cross-browser compatible jQuery plugin for rendering rounded corners on
I am looking for the most effective way to copy the contents of a
What are the most useful media=print -specific, cross-browser-compatible CSS properties? I think we have
Most of this info isn't needed to answer my question, I am including it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.