diesel
diesel

Reputation:

How do I make a link without <a href> show a mouse pointer instead of the highlight pointer?

<a id = "missionclick" class = "moreinfo"> More Information</a>

Currently shows only the highlight pointer when hovered over "more information", i'm trying to make it show the hand pointer.

Upvotes: 5

Views: 15056

Answers (6)

iamgopal
iamgopal

Reputation: 9132

The "cursor" css property is what you are looking for.

https://www.w3schools.com/cssref/pr_class_cursor.asp

Upvotes: 2

sevenpointsix
sevenpointsix

Reputation: 394

The following CSS should apply a "pointer" cursor to all tags without an href attribute:

a:not([href]) {
     cursor: pointer;
}

Upvotes: 5

Jon
Jon

Reputation: 2980

Here you go:

<a id="missionclick" class="moreinfo" style="cursor:pointer;">More Information</a>

Upvotes: 11

Chaitanya Chauhan
Chaitanya Chauhan

Reputation: 785

try this...

<div onClick="location.href='your link'">

Upvotes: 0

Sarim Javaid Khan
Sarim Javaid Khan

Reputation: 830

You can use this line as well.

    <a href="#"> Your link </a>

Upvotes: 0

Harry Joy
Harry Joy

Reputation: 59660

you can also try:

  <a id="missionclick" class="moreinfo" style="cursor:pointer;"> More Information</a>

Upvotes: 0

Related Questions