tor-browser

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

close-drag-005-manual.html (746B)


      1 <!doctype html>
      2 <title>drag &amp; drop - manually closing a window while a drag is in operation</title>
      3 <script type="text/javascript">
      4 window.onload = function() {
      5  document.getElementsByTagName('ul')[0].ondragstart = function(e) {
      6    e.dataTransfer.effectAllowed = 'copy';
      7    e.dataTransfer.setData('Text', 'dummy text');
      8  };
      9 };
     10 </script>
     11 <ul draggable='true'>
     12  <li>Drag this text downwards, and do not release the drag.</li>
     13  <li>Use a keyboard shortcut (eg. Alt+F4 on Windows) to close the window.</li>
     14  <li>The browser may optionally cancel the drag. The browser may optionally close the window. Fail if the drag placeholder gets stuck. Fail if the browser crashes.</li>
     15 </ul>
     16 <noscript><p>Enable JavaScript and reload</p></noscript>