tor-browser

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

051.xhtml (689B)


      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 text input in iframe to block element</title>
      5 <style type="text/css">
      6 iframe
      7  {width:500px;
      8  height:200px;
      9  border-style:none;}
     10 div[ondragenter]
     11  {width:300px;
     12  height:100px;
     13  margin-top:20px;
     14  padding:10px;
     15  color:white;
     16  background-color:navy;}
     17 </style>
     18 </head>
     19 <body>
     20 <p><iframe src="helper-drag-me-input.xhtml">XHTML document</iframe></p>
     21 <div
     22  ondragenter="event.preventDefault()"
     23  ondragover="return false"
     24  ondrop="document.querySelector('div').appendChild(document.createTextNode(event.dataTransfer.getData('text/plain')))"
     25 />
     26 </body>
     27 </html>