Simple answer: you can't.
Complex answer: you can't or at least not elegantly ;] Seriously though, the most you will be able to do with ASP is something such as:
asp Code:
Response.Write "<script language='JavaScript'>window.open('foo.html', 'new window');</script>"
Now to close your main browser window is bit of an issue. Typically when you try to call the window.close() JavaScript on a the main window you will get a warning to that says something like "The page is trying to close the browser window" blah blah blah. Some people have been able to supress this by using the following JavaScript
:
javascript Code:
window.opener='x';
window.close();
The reason this works is because when you call window.close() JavaScript checks to see if the value of window.opener is null or not. If it is it assumes something is amiss and displays the error message, otherwise it closes the window. This is a hack and I have had spotty luck with it but it might work for you.
hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================