This way, browsers that do not understand or were set to ignore JavaScript will open the rating popup page in a new window (target="_blank") and JS-aware browsers will perform the popup JavaScript but ignore the link itself due to the added "return(0);".
Yup. This behaviour has been implemented since the very first JS implementation in Netscape Navigator. There are, afaik, two browsers (a certain Opera version and some *nix browser I forgot) that do not follow this, but in these cases the deviating behavior is really a bug in the browser. To be really honest, I didn't actually test this, but took this info from a JS resources website I spidered a while ago.
Addendum: If this is too vague, just add the return(0) without changing the link itself. Doing so won't cause problems with broken browsers, but at least those that correctly implement JavaScript will no longer scroll to the top of the page like they do now.
return(0) added.
i did try that once somewhere @ using href= and onclick
but i had problems with some browsers if i remember correctly.
so if someone wants that to be included, plz test it with all
common browsers first