Setting window.location or window.open in AngularJS gives "access is denied" in IE 11 Setting window.location or window.open in AngularJS gives "access is denied" in IE 11 angularjs angularjs

Setting window.location or window.open in AngularJS gives "access is denied" in IE 11


Saving text in a local file in Internet Explorer 10

It looks like IE blocks window.open on blobs, but implemented their own functions for opening and saving blobs. Instead try

if (window.navigator && window.navigator.msSaveOrOpenBlob) {    window.navigator.msSaveOrOpenBlob(blob);}else {    var objectUrl = URL.createObjectURL(blob);    window.open(objectUrl);}