title: Capturing the close of the browse for file window with JavaScript
body: <p>I am using infile to ask the users to browse for a file on their machine. Is there way to catch if the window is closed without file being selected?<br /> For example if x is clicked.</p>
  
  <pre><code>&lt;input type="file" name="data" id="inFile" size="15" style="display:none" onchange="handleFiles(this)"/&gt;
  </code></pre>
  
  <p>Thanks</p>