This is a good solution:
http://gruffcode.com/2010/10/28/detecting-the-file-download-dialog-in-the-browser/
It basically works by setting a cookie in the reponse header of the downloaded file, so javascript periodically can check for the existence of this cookie…
More Related Contents:
- JavaScript, browsers, window close – send an AJAX request or run a script on window closing
- How can I get the scrollbar position with JavaScript?
- How to get a word under cursor using JavaScript?
- Manipulating innerHTML removes the event handler of a child element? [duplicate]
- Onclick javascript to make browser go back to previous page?
- Detect when user accepts to download a file
- How to know whether refresh button or browser back button is clicked in Firefox [duplicate]
- Listener for property value changes in a Javascript object
- Get browser download path with javascript
- full-screen browser window on load document
- How can I know whether refresh button or browser back button is clicked in Firefox? [duplicate]
- Is it possible to catch browser’s File Open/Save dialog event using Javascript
- Trigger a Browser’s Save-As Dialog via Javascript using only On-page data
- How to generate and prompt to save a file from content in the client browser? [duplicate]
- How to force browser to show image 3 inches wide?
- Download a file by jQuery.Ajax
- Detect Click into Iframe using JavaScript
- window.onunload is not working properly in Chrome browser. Can any one help me?
- Caching a jquery ajax response in javascript/browser
- How to detect when a page exits fullscreen?
- What are the current cookie limits in modern browsers?
- Prevent onmouseout when hovering child element of the parent absolute div WITHOUT jQuery
- Usage of Hash(#) in URL
- Popstate on page’s load in Chrome
- Getting the text from a drop-down box
- How to trigger javascript on print event?
- window.opener.focus() doesn’t work
- Pick up the Android version in the browser by Javascript
- The “onchange” event does not work with “value” change in “text input” object
- Manually dispatchEvent DOMContentLoaded