title: Check if the user accepted a file download in JavaScript
body: <p>How do I check if the user accepted a file download in JavaScript. Example: If the site pops up a download link, and the web browser asks the user to download the file, how do I determine on that page if the user accepted the download or not?</p>