javascript - Button to download a file useing .click(), faulty in IE and firefox -


the following contained in function compiles 'url' request , downloads file when button clicked (with angular ng-click="function" tag).

angular.element(link)    .attr('href', url);  link.click(); 

it works desired in chrome, in both ie(9 & 10) , firefox nothing. 'link' object given correct 'href' property. can think .click method not doing supposed in ie , firefox. advice?

much appreciated!


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -