incidentally if you must do this, it's better to use href="javascript:;" rather than href="#" because it won't cause jumps in position for noscript users/when scripts break
Quick heuristic: if you have a clickable link and I can't open it in a new tab, you should be using a button instead.