On domain1.com I have a link that opens a popup to domain2.com. Within the popup is an iframe, also hosted on domain2.com. From within the iframe, i am trying to close the popup window. I seem to be getting confused on how to do this. From the iframe, do I call a javascript function defined in the popup that will close the window? Can I close the window directly from the iframe?
Share
Using this:
parent.window.close();or this:top.window.close();you should be able to close it.