title: jQuery: fancybox if close
body: <p>FancyBox jquery question</p>
  
  <p>If you close it by pressing X I would like to get an alert("you forgot something.."). </p>
  
  <p>How can i do this?</p>
  
  <pre><code>            $("a#uploadImage").fancybox({
              'titleShow'     : false,
              'width':    560,
              'height':   620,
              'autoDimensions': false,
              'overlayOpacity': 0.6
              });
  </code></pre>