| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- Frame that can be used to test drop of a drag-and-drop operation. | 2 <!-- Frame that can be used to test drop of a drag-and-drop operation. |
| 3 The drop target (a <div>) fills the frame from (0,0) to (199,199). | 3 The drop target (a <div>) fills the frame from (0,0) to (199,199). |
| 4 --> | 4 --> |
| 5 <head> | 5 <head> |
| 6 <meta charset="utf-8"> | 6 <meta charset="utf-8"> |
| 7 <style> | 7 <style> |
| 8 div { | 8 div { |
| 9 position: absolute; | 9 position: absolute; |
| 10 top: 0px; | 10 top: 0px; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 function drop_handler(ev) { | 31 function drop_handler(ev) { |
| 32 window.reportDragAndDropEvent(ev); | 32 window.reportDragAndDropEvent(ev); |
| 33 | 33 |
| 34 // This communicates that we have handled the drop | 34 // This communicates that we have handled the drop |
| 35 // (i.e. that there is no other, default action to take). | 35 // (i.e. that there is no other, default action to take). |
| 36 ev.preventDefault(); | 36 ev.preventDefault(); |
| 37 } | 37 } |
| 38 </script> | 38 </script> |
| 39 </head> | 39 </head> |
| 40 <body> | 40 <body> |
| 41 <div ondragover="dragover_handler(event);" ondrop="drop_handler(event);"> | 41 <div ondragover="dragover_handler(event);" |
| 42 <p>Use this frame as a target of a drag-n-drop</p> | 42 ondrop="drop_handler(event);" |
| 43 ondragenter="window.reportDragAndDropEvent(event);" |
| 44 ><p>Use this frame as a target of a drag-n-drop</p> |
| 43 </div> | 45 </div> |
| 44 </body> | 46 </body> |
| OLD | NEW |