2 <title>drag
& drop - manually closing a window while a drag is in operation
</title>
3 <script type=
"text/javascript">
4 window
.onload = function() {
5 document
.getElementsByTagName('ul')[0].ondragstart = function(e
) {
6 e
.dataTransfer
.effectAllowed
= 'copy';
7 e
.dataTransfer
.setData('Text', 'dummy text');
12 <li>Drag this text downwards, and do not release the drag.
</li>
13 <li>Use a keyboard shortcut (eg. Alt+F4 on Windows) to close the window.
</li>
14 <li>The browser may optionally cancel the drag. The browser may optionally close the window. Fail if the drag placeholder gets stuck. Fail if the browser crashes.
</li>
16 <noscript><p>Enable JavaScript and reload
</p></noscript>