I haven’t found a straight answer for this yet, so I’ll just ask it.
I have a page that needs to close a window once it has loaded. All I know about the window is its name, “wait”, as in the window was opened with “window.open(url,’wait’)”.
Is there a way to find out if this window exists and then close it?
My current solution is to run “window.open(‘close.html’, ‘wait’);” where close.html just has a self.close() javascript.
The reason for this is that I have an asp.net page, I want to submit data, but if the data is bad, i want the error to display on the same page. I would like a “Please Wait” popup on the screen and after the form is done, this popup needs to close.