tor-browser

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

bug106855-1.html (507B)


      1 <!DOCTYPE HTML><html><head>
      2  <script src="/tests/SimpleTest/EventUtils.js"></script>
      3 </head>
      4 <body>
      5 x<br>
      6 <textarea id="t" rows="4" spellcheck="false" style="-moz-appearance: none">
      7 A
      8 
      9 
     10 </textarea><br>
     11 y
     12 <script>
     13  // Position the caret at the last line
     14  var sel = window.getSelection();
     15  sel.removeAllRanges();
     16 
     17  var area = document.getElementById('t');
     18  area.focus();
     19 
     20  sendKey('DOWN');  // now after "A"
     21  sendKey('DOWN');  // 
     22  sendKey('DOWN');  // now at the last line
     23 </script>
     24 </body>
     25 </html>