tor-browser

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

006-manual.html (715B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Link drag and drop roundtrip</title>
      5 <script type="application/ecmascript">
      6 function checkLink(event)
      7  {document.querySelector('a').firstChild.nodeValue = (event.dataTransfer.getData('text/uri-list').replace(/\r\n$/,'') == 'data:text/plain,1')?'PASS':'FAIL'}
      8 </script>
      9 </head>
     10 <body>
     11 <p><a href="data:text/plain,1" ondragstart="event.dataTransfer.effectAllowed = 'copy'" ondragenter="event.preventDefault()" ondrop="checkLink(event)" ondragover="return false">Drag me</a></p>
     12 <p>Drag link outside browser window and then drag it back and drop on itself. You should see word PASS once you drop it.</p>
     13 </body>
     14 </html>