post-to-opener.html (312B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>HTML Test: post window's name to top browsing context</title> 4 <link rel="author" title="Intel" href="http://www.intel.com/"> 5 <script> 6 if (window.opener) { 7 window.opener.postMessage({ 8 name: window.name, 9 isTop: (window.top === window) 10 }, "*"); 11 } 12 </script>