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
Post a Comment