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



varo
stranger

Aug 29, 2001, 11:40 PM


Views: 42819
Close Window and Redirect

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



DrZed
User

Sep 20, 2001, 9:57 AM


Views: 42812
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."