0

How can I remove the hashtag which is used as a null link when triggering javascript?

What I mean is, <a href="#">link</a> to trigger a javascript content, making the url http://whatever.com/index.html#.

How can I get rid of the # without removing it from the <a> attribute?

NEXTGENINTL
  • 33
  • 11

1 Answers1

0

Use

<a href="javascript:void(0)">link</a>
Prasanna
  • 10,956
  • 2
  • 28
  • 40