tor-browser

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

001.html (581B)


      1 <!DOCTYPE html>
      2 <title>drag &amp; drop - simple cross-document data drop</title>
      3 <style>
      4  body > div {
      5    height: 200px;
      6    width: 200px;
      7    background-color: orange;
      8  }
      9 </style>
     10 
     11 <script>
     12 window.onload = function() {
     13  var orange = document.getElementsByTagName('div')[0];
     14  orange.ondragstart = function(e) {
     15    e.dataTransfer.effectAllowed = 'copy';
     16    e.dataTransfer.setData('text', 'dummy text');
     17  };
     18 };
     19 </script>
     20 
     21 <div draggable="true"></div>
     22 <p><iframe src="001-1.html" height="300" width="500"></iframe></p>
     23 <noscript><p>Enable JavaScript and reload</p></noscript>