You can mix javascript:void() and onclick, or even make custom 'javascript:' links that are informative while doing nothing else. This may not be the best way in certain respects, but causes no problems in the majority of browsers (any that I know of), and can be, as I said, informative. For example, if you have links that change images:
HTML Code:
<a href="javascript:next()" onclick="changeImage(1);return false;">Next</a>
<a href="javascript:previous()" onclick="changeImage(-1);return false;">Previous</a>
These 'links' will never fire, but will show up in the status bar and/or other places in many browsers, giving the user information about what will happen if they click. The functions, next() and previous() don't even need to exist.
Bookmarks