RE: FN-FORUM javascript popup
date posted 8th January 2003 21:15
> I have a js popup window problem. Basically, when I click
> the link that produces the popup, popup window appears fine,
> however the main page jumps to the top. Is there a way to
> prevent this happening?
Where you have you're onClick="window.open();" or somesuch in the link,
try adding a return false; statement, thus:
Link
An added benefit of doing it this way is that the return false prevents
the browser from carrying out the action specified in the href. This
means that to ensure you don't prevent users with Javascript disabled
from using the link, you can combine a normal link with a target="_new"
and the correct url in the href with the window.open();return false;.
Darran.