tor-browser

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

006.html (572B)


      1 <!doctype html>
      2 <title>Link with onclick form submit 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 name="test"></iframe>
      7 <form target="test" action="resources/click.html"></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.links[0].click()});
     12 onmessage = t.step_func(
     13  function(e) {
     14    assert_equals(e.data, "href");
     15    t.done();
     16  });
     17 </script>