[Javascript] popup window close

Flavio Gomes flavio at economisa.com.br
Thu May 13 10:30:04 CDT 2004


Everyone is going to tell you:
 Don't use popups...

  But a solution with popups would be for the popupWindow to popup 
pageB.html and then focus itself(popupWindow) back;
  So, from popupWindow you would have reference to all windows
    ==> window.opener = pageA.htm
    ==> window = popupWindow
    ==> windowB = pageB.htm

Hope to help,

-- 
Flavio Gomes
flavio at economisa.com.br



Paul McGuire wrote:

>I have a real problem I cant get round.
>
>I have PageA.htm and PageB.htm
>
>PageA.htm is a form and onsubmit I open a popup window which displays a
>please wait... message.
>
>PageB.htm take about 3 mins to load and as I want the please wait.... window
>stays open.
>
>However on the onload handler of PageB.htm I want to close the window. I
>cannot get a handle on the popup once the original window opener has gone.
>How do I reference this popup in a new page?
>
>PLease PLaease somebody put me out my misery!
>
>Paul
>
>  
>



More information about the Javascript mailing list