title: click ok or cancel of file download in javascript
body: <p>Is there any way to detect if a user has selected ok or cancel to download a file in javascript? For instance if I have a link that points to a file and a user clicks on it<code>&lt;a href="file.xls"&gt;download&lt;/a&gt;</code> that will automatically start the download of the file. But how do I know if the user has been prompt do download or not?
  Thanks!</p>