javascript - How can I create an empty HTML anchor so the page doesn't "jump up" when I click it? -


When I click on a link, I'm working on some junky to hide / show some content. Can

  & lt; A href = "#" onclick = "jquery_stuff" />  

But if I click on a link, then clicking that page will return to the top of the page.

If I do something like:

  & lt; A href = "onclick =" jquery_stuff "/>  

page will reload, which will rotate the page for all the changes made by JavaScript.

Some:

  one onclick = "jquery_stuff" />  

will give me the desired effect, but now as a link Will not show if there is any way to specify a blank anchor, so I can change anything on the page or move it to the onclick event without moving the scrollbar Can I specify script handlers?

Put a "return false"; On the second option:

  & lt; a href = "" onclick = "jquery_stuff; Return Back; "/ & gt;  

Comments