I am working on some jQuery to hide / show some content when I click the link. I can create something like:
<a href="#" onclick="jquery_stuff" />
But if I click this link while I scroll on the page, it will return to the top of the page.
If I do something like:
<a href="" onclick="jquery_stuff" />
The page will reload, which will copy the page of all changes made by javascript.
Something like that:
<a onclick="jquery_stuff" />
It gives me the desired effect, but it no longer appears as a link. Is there a way to specify an empty anchor so that I can assign a javascript handler for the onclick event without changing anything on the page or moving the scroll bar?
javascript jquery anchor
Alex Fort Jan 29 '09 at 20:08 2009-01-29 20:08
source share