How do I make a link that goes nowhere?

Ankur picture Ankur · Dec 2, 2009 · Viewed 58.4k times · Source

Is it possible to make a link that does nothing?

I want the item to be a link so I get the cursor to change on mouseover, but I don't want the link to actually go anywhere as it actually triggers the showing of a div with extra functionality on the same page.

Answer

leepowers picture leepowers · Dec 2, 2009

Will add to the browser history:

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

Won't add to the browser history (preferred method):

<a href="javascript:;"></a>