In an ASP, either through a link or through a button, how can I close the current window (which was not opened through the open method) - without the user geting prompted - and open a new window?

The window.close gives a message like

"The web page is trying to close the window you are currently in. Do you wish to close the window"

Thanks for any help