Can a link in a pop up window close the window and....
Please HELP!!!
Quinniee
9:33 pm on Dec 11, 2001 (gmt 0)
Can a link in a pop up window close the current window and redirect the original window to a new site. I can get the link to redirect the original window but the window.close() function is not closing the pop up window. Any suggestions???
IanKelley
6:19 am on Dec 12, 2001 (gmt 0)
No problem... Just make sure it redirects the parent before it closes itself: opener.location.href= and then: self.close() You can use a function or put both directly into an onclick event, just separate them with a ;
Brett_Tabke
4:51 am on Dec 27, 2001 (gmt 0)
For a good example of the above code, signup for a Lycos community site. Then go login. The login is in a popup. After you select ok, the popup closes and redirects the other page to the login form.