tor-browser

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

file_window_close_and_open.html (592B)


      1 <!DOCTYPE html>
      2 <html>
      3 <script>
      4  console.log("loading file_window_close_and_open.html");
      5  addEventListener("load", function() {
      6    console.log("got load event!");
      7    let link = document.querySelector("a");
      8    if (window.location.hash === "#noopener") {
      9      link.setAttribute("rel", "noopener");
     10    } else if (window.location.hash === "#opener") {
     11      link.setAttribute("rel", "opener");
     12    }
     13    link.click();
     14  });
     15 </script>
     16 <body>
     17  <h1>close and re-open popup</h1>
     18  <a href="file_broadcast_load.html" target="_blank" onclick="window.close()">close and open</a>
     19 </body>
     20 </html>