More In...">

How to make a link without <a href> show the mouse pointer instead of the selection pointer?

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

Currently, only the highlight pointer is displayed, when it hangs over the "additional information", I'm trying to show it a hand pointer.

+3
source share
6 answers

Here you go:

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

The css property of the cursor is what you are looking for.

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

+2
source

CSS "" href:

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

:

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

.

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

...

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

0

Source: https://habr.com/ru/post/1783563/


All Articles