tor-browser

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

008.html (682B)


      1 <!doctype html>
      2 <title>Link with onclick form submit to javascript url and href navigation </title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <iframe id="test" name="test"></iframe>
      7 <form target="test" action="javascript:'<script>parent.postMessage(&quot;click&quot;, &quot;*&quot;)</script>'"></form>
      8 <a target="test" onclick="document.forms[0].submit()" href="resources/href.html">Test</a>
      9 <script>
     10 var t = async_test();
     11 t.step(function() {document.getElementsByTagName("a")[0].click()});
     12 onmessage = t.step_func(
     13  function(e) {
     14    assert_equals(e.data, "href");
     15    t.done();
     16  });
     17 </script>