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

  • SEARCH
  • Home
  • 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 660469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:09:34+00:00 2026-05-13T23:09:34+00:00

I have a lot of <a> html tags without the href attribute for making

  • 0

I have a lot of <a> html tags without the href attribute for making onclick javascript calls. These links do not have a pointer style of cursor. They have text style cursor.

How can I set the cursor style to pointer for links without using the href attribute?

I know I can add href=”#”. I have this in a lot of places in the html document, and would like to know how to make cursor style pointer for links without using the href attribute.

  • 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-13T23:09:35+00:00Added an answer on May 13, 2026 at 11:09 pm

    in your css file add this….

    a:hover {
     cursor:pointer;
    }
    

    if you don’t have a css file, add this to the HEAD of your HTML page

    <style type="text/css">
     a:hover {
      cursor:pointer;
     }
    </style>
    

    also you can use the href=”” attribute by returning false at the end of your javascript.

    <a href="" onclick="doSomething(); return false;">a link</a>
    

    this is good for many reasons. SEO or if people don’t have javascript, the href=”” will work. e.g.

    <a href="nojavascriptpage.html" onclick="doSomething(); return false;">a link</a>
    

    @see http://www.alistapart.com/articles/behavioralseparation

    Edit: Worth noting @BalusC’s answer where he mentions :hover is not necessary for the OP’s use case. Although other style can be add with the :hover selector.

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

Sidebar

Related Questions

I have a HTML page that scrolls up and down (not a lot, but
I have a lot of wrongs embedded HTML tags inside XML. like this: <?xml
I have a lot of templates that are enclosed within script tags. They are
Hello I have a lot of div tags, but I want to delete the
So I have an html page. It's full of various tags, most of them
I know that there are lot of tags in XAML that have simmilar names
We have a lot of open discussions with potential clients, and they ask frequently
we have a lot of users running in different shared and solo-owned repositories in
I have a lot of classes in the App_Code directory could this be a
I have a lot of constants that are somehow related, at some point I

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.