I have a lightbox overlay and I'm using the below to cancel out the browser window scroll for the href anchor of #. I have it working so it doesn't scroll the window on the initial click however upon closing the lightbox overlay the browser scrolls to the top and # is appended to the URL.
<a href=# onclick=somefunction(); return false;>...
or even this...
<a href=javascript:void(0) onclick=somefunction(); return false;>...
The link is on a clickable image which the onclick function fires the overlay to pop up.
Andy ideas how to prevent the browser from scrolling to top upon exiting the overlay?