Part of my ste includes a popup window to handle most of the .asp scripting without having to reload. I use javascript to transfer values between the two windows. Because this new wndow is integral to the functionality of the site, I use a body onload to do window.open evry time the page is loaded.
The problem is that sometimes as part of the .asp I have to include a js alert. This means that the js becomes part of that second window until it is reloaded. When i reload the first page, it calls the second window, and apparently refreshes the html, which displays the alert again. This is a major problem because it means that once an alert has displayed, it displays every time the first page is reloaded. This is annoying, and makes no sense, as the alert message is specific to a certain occurence.
Is there some way that I can close the window before I open it again to ensure that it loads a new instance?