tor-browser

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

placeholder-focus.html (567B)


      1 <!DOCTYPE html>
      2 <html class='reftest-wait'>
      3  <link rel='stylesheet' type='text/css' href='style.css'>
      4  <script>
      5    function loadHandler()
      6    {
      7      document.getElementById('i').focus();
      8    }
      9    function focusHandler()
     10    {
     11      document.getElementById('moz').focus();
     12    }
     13    function focusHandlerMoz()
     14    {
     15      document.documentElement.className = '';
     16    }
     17  </script>
     18  <body onload='loadHandler();'>
     19    <input id='i' placeholder='foo' onfocus='focusHandler();'>
     20    <input id='moz' placeholder='bar' onfocus='focusHandlerMoz();'>
     21  </body>
     22 </html>