tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

about-blank-replacement-blank-dynamic-nested-frame.html (424B)


      1 <!doctype html>
      2 <html>
      3 <body>
      4 <script>
      5 function nestedLoaded() {
      6  parent.postMessage({ type: 'NESTED_LOADED' }, '*');
      7 }
      8 
      9 // dynamically add an about:blank iframe
     10 var f = document.createElement('iframe');
     11 f.onload = nestedLoaded;
     12 document.body.appendChild(f);
     13 
     14 // Helper routine to make it slightly easier for our parent to find
     15 // the nested frame.
     16 function nested() {
     17  return f.contentWindow;
     18 }
     19 </script>
     20 </body>
     21 </html>