title: is it possible to open a popup with javascript and then detect when the user closes it?
body: <p>The question is pretty much all in the title.</p>
  
  <p>Is it possible (and how?) to open a popup with javascript and then detect when the user closes it?</p>
  
  <p>I am using jquery within the project so a jquery solution would be good. Cheers!</p>