|
1 <html> |
|
2 <body> |
|
3 Page 2 has an iframe of its own. |
|
4 <iframe id='inner-iframe' onload='innerIframeLoaded()' src='data:text/html, |
|
5 <html><body> |
|
6 <script>function go() { window.location = "file_bug593174_1.html"; }</script> |
|
7 </body></html>'> |
|
8 </iframe> |
|
9 |
|
10 <script> |
|
11 function innerIframeLoaded() { |
|
12 if (parent.iframeLoaded) { |
|
13 parent.iframeLoaded('inner'); |
|
14 } |
|
15 else if(opener.iframeLoaded) { |
|
16 opener.iframeLoaded('popup/inner'); |
|
17 } |
|
18 } |
|
19 |
|
20 function navigateInnerIframe() { |
|
21 document.getElementById('inner-iframe').contentWindow.go(); |
|
22 } |
|
23 |
|
24 function getInnerIframeReferrer() { |
|
25 return document.getElementById('inner-iframe').contentWindow.document.referrer; |
|
26 } |
|
27 </script> |
|
28 |
|
29 </body> |
|
30 </html> |