What is the difference between javascript:// and javascript:void(0) ?
<a href="javascript://" class="button toggle-filters">Filters</a>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Previous two answers cover the direct answer to your question, but on a separate track I think you should consider using neither of them. Assuming you’re using the anchor tag to illustrate to the user that there’s an action they can take by clicking on that text, there are multiple mechanisms for illustrating that, and semantically an anchor tag should illustrate a destination, not an activity.
See this previous answer, and this one.