rocknbil - 4:54 pm on Mar 17, 2011 (gmt 0)
In the first case, seems like a chicken and an egg, how can you give them the option to decline without throwing some alert or pop up itself?
<a href="#" onclick="popUp(somefile.html);">
Easily fixed . . .
<a href="somefile.html" onclick="return popUp(somefile.html);">
You'd return false from the popUp function which is what stops the page from navigating to somefile.html (or top of the page in the case of #.)