Detect when user accepts to download a file : <p>I want to redirect the user to a different webpage after they click a hyperlink which allows them to download a file. However since they need to make a choice in the open/save file dialog, I don't want to redirect them until they accept the download.</p>

<p>How can I detect that they performed this action?</p>
