An interesting alternative to href="#thisgoesnowhere", which causes the insertion of the “#” character and any following characters (“thisgoesnowhere” in this silly example) to the end of the URL, is to use a null javascript link target.
href="javascript:void(0);"
In this case, your onclick or other events are treated as before, but your page URL hasn’t needlessly changed.