008-1.xhtml (502B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>Cross page drag and drop: helper file</title> 5 <style type="text/css"> 6 html, body 7 {height:100%;} 8 </style> 9 </head> 10 <body ondragenter="event.preventDefault()" ondragover="return false" ondrop="event.preventDefault();document.querySelector('p').firstChild.nodeValue = event.dataTransfer.getData('text/uri-list').substr(16,4)"> 11 <p>Drop box now, you should see word PASS once you drop it.</p> 12 </body> 13 </html>