tor-browser

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

query-target-in-load-event.part.html (311B)


      1 <!-- Used by ./query-target-in-load-event.html -->
      2 <script>
      3  window.onload = function() {
      4    let target = document.querySelector(":target");
      5    let expected = document.querySelector("#target");
      6    window.parent.postMessage(target == expected ? "PASS" : "FAIL", "*");
      7  };
      8 </script>
      9 
     10 <div id="target"></div>