Click to See Complete Forum and Search --> : close popup created in another frame


houseofstrauss
04-21-2003, 12:48 PM
I have a popup that is opened straightaway in frame A. How do I close it automatically when frame B is fully loaded. I'm using code in frame B <body onLoad="MyPopup.close();"> but it dosn't work unless popup is spawned from the same frame.

It appears that I need to reference frame A or something??

Thanks Richard

khalidali63
04-21-2003, 01:10 PM
You should be able to call a function in the parent window that closses the child window from the frame..

houseofstrauss
04-22-2003, 07:43 AM
Thanks for your reply Khalidali

Could you give me a real example of how this is coded??

Thanks

Jona
04-22-2003, 12:35 PM
[I think] top.frameName.myWindow.close();