PDA

View Full Version : Popup Closes Without Linking?


gorilla1
02-14-2003, 04:18 PM
I have set up a popup for onload and another for onunload. This gets a bit messy, so I added onBlur="self.close()" to each popup, so that they close once the viewer takes any action off the popup. This works fine, except that the popup contains a link, and if you try to click the link, the popup immediately closes without the link being taken. Is there a way to enable the cliciking of the link to work? Also, is there simply a way to have one popup vanish when the other laods?
G

A1ien51
02-14-2003, 04:48 PM
I would just do something like this, not sure if this is exactly what you want.

In you window open functuion, check to see if a pop up is open, if it is, it will be closed and then it will be opened to the new page.

if (NewWin && !NewWin.closed){
NewWin.close();}
}

NewWin=window.open(BLAHBLAHBLAH);