Home: Other Programming Languages: Javascript:
Close Window and Redirect


Aug 29, 2001, 11:40 PM

Views: 43427
Close Window and Redirect

How can I use a close window script but redirecting the user to a new window?


Sep 20, 2001, 9:57 AM

Views: 43420
Re: Close Window and Redirect

Do you really need to close the window? It sounds like you should simply redirect the current window to the new href. For example:

location.href = "http://www.whereever.com/";

If you have a reason for wanting to close and re-open a window, please specify why.

"It's like living the in future."