I have to show a loader (this is for professionnal web app) when the user click on the link because the action create a PDF file and it may take 1 minute, so showing a loader during the process of rendering, let users to dont think about a bug or click many times on the link.
The jsfiddle : http://jsfiddle.net/neilime/Ca4tH/2/ On 10 jan, 17:58, Sanford Whiteman <sa...@figureone.com> wrote: > > So, when the file is loaded and the popup is displayed to save it, i > > want to swap the hyperlink's class to "icon_download" > > Try the CSS :active pseudo-class. This is likely the closest (some) > browser/OS is going to give you to the "opening native dialog" event. > > I also feel that you violate the principle of "least surprise" by > trying to give feedback in the background browser window while the OS > is basically in control. It sounds like an extra "flourish" that may > look cool to you, but basic events like attachment-style downloads > should work the same across all sites or the user may not understand > what's going on. My advice is not to try to trap this event at all. > > Also, present a tweakable example in jsFiddle as Philip said. > > -- Sandy