tor-browser

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

insertText-at-end-of-text-in-body.html (370B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <script>
      6 addEventListener("load", event => {
      7  document.body.focus();
      8  const text = document.createTextNode("x".repeat(15));
      9  document.body.appendChild(text);
     10  getSelection().collapse(text, text.length);
     11  document.execCommand("insertText", false, "a");
     12 });
     13 </script>
     14 </head>
     15 <body contenteditable></body>
     16 </html>