How come javascript:void(0) is creating a 404 page? We have a need to have an  to have href="javascript:void(0);" so that some action can take place on the page without refreshing the page. HOwever, this is generating a 404 page and we need assistance in how to best get rid of the 404 but also keep the functionality so that the action can take place without page refresh. 

Code in question:

&lt;a href="javascript:void(0);"&gt;Some action&lt;/a&gt;
If you are writing some JS, you can add something like:

$('a#the_link_ID').click(function(event) {
  event.preventDefault(); // This prevents to follow the link.
  // ...
  // Here goes your code.
});