The best way to do that is to set the href to #0
like this:
Here's why: You will NEVER have anything on the page with the ID 0 (if you do, there's a problem there anyways), and since #0
doesn't exist, the click event doesn't bring you back to the top of page. You do NOT need JavaScript to do that and you should not use JavaScript.