tor-browser

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

099.xhtml (717B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Selection drag and drop from textarea in object to block element</title>
      5 <style type="text/css">
      6 object
      7  {width:500px;
      8  height:200px;}
      9 div[ondragenter]
     10  {width:300px;
     11  height:100px;
     12  margin-top:20px;
     13  padding:10px;
     14  color:white;
     15  background-color:navy;}
     16 </style>
     17 </head>
     18 <body>
     19 <p><object type="application/xhtml+xml" data="helper-drag-me-textarea-to-other-blue-box.xhtml">XHTML document</object></p>
     20 <div
     21  ondragenter="event.preventDefault()"
     22  ondragover="return false"
     23  ondrop="document.querySelector('div').appendChild(document.createTextNode(event.dataTransfer.getData('text/plain')))"
     24 />
     25 </body>
     26 </html>