Where is the button that invokes the popup (or the script, respectively)?
If the click is invoked with jQuery you can do
Code:
….click(function(e) {
e.preventDefault();
…
}
That preventDefault function prevents the default action, i. e. the link going somewhere.
On the other hand, since the anchor isn’t linking anywhere anyway (as I assume by you saying that it jumps to the top which sounds like you have an
href="#") you would be better off just removing that attribute altogether. Why have a link that’s not linking anything?