045.xhtml (554B)
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 to iframe</title> 5 <style type="text/css"> 6 iframe 7 {width:350px; 8 height:150px; 9 border-style:none;} 10 </style> 11 </head> 12 <body onload="document.querySelector('input').select()"> 13 <p>Drag selected text to the blue box. Copy of selection should end up in the blue box once you drop it there.</p> 14 <p><input value="Drag me"/></p> 15 <p><iframe src="helper-drop-here-blue-box.xhtml">XHTML document</iframe></p> 16 </body> 17 </html>