briandunning
12-03-2003, 07:03 PM
How can I close a window by its name? If I know there is another window open with a window.name=("thing"), what's the syntax to close it? I know that thing.close won't work.
For extra credit: how do I prevent IE from displaying a JavaScript error if I try to close that window when it doesn't exist (if the user has already closed it manually, for instance)?
Thanks!
For extra credit: how do I prevent IE from displaying a JavaScript error if I try to close that window when it doesn't exist (if the user has already closed it manually, for instance)?
Thanks!