ziiweb ziiweb - 4 months ago 18
HTML Question

How to show the little hand in a link that doesn't have the href attribute?

i have this link

<a>jander</a>
.

When I put the mouse cursor over it, the selection cursor is shown instead of the little hand.

Is there any way to show the little hand?

Note: I don't want to use href='#' because it is that case when I click on the link (it's a link that executes ajax function), it goes to the top of the page.

Answer

Style the cursor as so:

<a style="cursor:pointer;">jander</a>