[Javascript] Closing Popup from new page

Anthony Webster awebster at venda.com
Tue Jan 21 09:44:32 CST 2003


hi dave

you are doing things right, but I think you can only close the window by calling your javascript in the window that opened it. 

you can create a function in the window that opens the popup, and call that function (in the 1st window) in your onload

anthony


-----Original Message-----
From: David Hannum [mailto:hannum at ohio.edu]
Sent: 21 January 2003 14:45
To: javascript at LaTech.edu
Subject: [Javascript] Closing Popup from new page


Hello,

I have a popup that is spawned from a "submit" button on a page.  When the
new page loads, I want the popup to close.  I tried naming the popup and
then using onLoad="windowname.close()" in the body tag of the new page, but
it does not work.  Anybody know what I should do?

Kind Regards,
Dave

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list