<!doctype html>
<title>Alert during dragleave with release over dialog</title>
<style>
  body > div {
    height: 200px;
    width: 200px;
    background-color: orange;
    display: inline-block;
  }
  body > div + div {
    background-color: navy;
  }
</style>
<script type="text/javascript">
window.onload = function () {
  var orange = document.getElementsByTagName('div')[0], blue = document.getElementsByTagName('div')[1];
  orange.ondragstart = function (e) {
    e.dataTransfer.setData('text','PASS');
   