Just add ; return false; to the end of your onclick, for example:
Edit: Hemlock's answer is a good alternative, but yet another one is a combination of the two:
The advantage of this is that you're explicitly saying that the should do nothing with the href, and the onclick event handler is a separate attribute. If you later decide to attach the onclick handler using JavaScript rather than inlining it (recommended), it's simply a matter of removing the onclick attribute.