}

Href Index Page 1

Which is the proper "href" value in JavaScript for links: "#" or "javascript:void(0)"?

In this article we explain the differences of using "#" or "javascript:void(0)" in the href attribute. We warn you that for modern javascript you should avoid using this values in the href since it's a bad practice.