OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <script> | |
3 // Called from Iframe when it is loaded and initialized. | |
4 window.transferIframeAndCloseWindow = function() { | |
5 var backgroundWin = window.opener; | |
6 backgroundWin.log("Transferring Iframe now."); | |
7 | |
8 var xhrFrame = document.getElementById("iframe"); | |
9 | |
10 backgroundWin.document.adoptNode(xhrFrame); | |
11 backgroundWin.document.body.appendChild(xhrFrame); | |
12 // window.close(); // This is what caused the XHR load to silently abort. | |
Paweł Hajdan Jr.
2011/08/03 16:27:27
Please remove any commented-out code before commit
| |
13 } | |
14 </script> | |
15 | |
16 <body> | |
17 child | |
18 <iframe id="iframe" src="iframe-reparenting-close-window-iframe.html"></iframe > | |
19 </body> | |
20 </html> | |
OLD | NEW |