title: How to detect if a dragged element is dropped outside of its parent?
body: <p>I want to find out when an element is dragged and dropped outside of its parent:</p>
  
  <pre><code>element.addEventListener('dragend', function(event) {
    // check if element is dropped outside its parent
  }, false)
  </code></pre>