tor-browser

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

navigate.html (945B)


      1 <html>
      2 <head>
      3    <script src="/tests/SimpleTest/EventUtils.js"></script>
      4    <script src="NavigationUtils.js"></script>
      5    <script>
      6    function navigate() {
      7        var args = window.location.hash.substring(1).split(",");
      8        var target = args[0];
      9        var mechanism = args[1];
     10 
     11        switch (mechanism) {
     12        case "location":
     13          // eslint-disable-next-line no-eval
     14          navigateByLocation(eval(target));
     15          break;
     16        case "open":
     17          navigateByOpen(target);
     18          break;
     19        case "form":
     20          navigateByForm(target);
     21          break;
     22        case "hyperlink":
     23          navigateByHyperlink(target);
     24          break;
     25        }
     26    }
     27    </script>
     28 </head>
     29 <body onload="navigate();">
     30 <script>
     31 var args = window.location.hash.substring(1).split(",");
     32 var target = args[0];
     33 var mechanism = args[1];
     34 document.write("target=" + target + " mechanism=" + mechanism);
     35 </script>
     36 </body>
     37 </html>