Originally Posted By: andy
Stick with your anchors, but at the end of the onclick do a "return false;". I don't know whether that works in all browsers though.

So:

<a href="#" onclick="doBlah(); return false;">click</a>

The other nice thing about that, is that if you use "myothertab.html" instead of "#", the whole thing works for people who have Javascript switched off (while still getting the slicker, no-reload behaviour if JS is switched on).

Peter