JavaScript Dynamically created Anchor tag click method not downloading file in internet explore 11 dynamically create anchor tag in javascript,dynamically create anchor tag

Anchor tag not downloading file in IE, instead it gives the option to search for app in app store to open file. For chrome and FF this code is working fine. I don't know this is happening in windows 7 or not as I am using windows 8.1 and windows 7 don't have option for apps.

var a = document.createElement("a");
a.href = filepath;
a.download = filename;
a.click();

Any help will be highly appreciated. Thanks.

Answer:1

Directly quoting from SOpost

Internet Explorer does not presently support the Download attribute on A tags.

See http://caniuse.com/download and http://status.modern.ie/adownloadattribute; the latter indicates that the feature is "Under consideration" for IE12.

Answer:2

it is concerning my final year project on web development. i want to change the contents of my page without reloading the page- i know this can be achieve using css /ajax or jquery but that would be ...

it is concerning my final year project on web development. i want to change the contents of my page without reloading the page- i know this can be achieve using css /ajax or jquery but that would be ...

  1. change detection method update content

I have created a somehow functional "deeply" nested array filtering functionality. This functionality displays car, which has a color "RED" assigned to them. However the cars, which "pass" the filter ...

I have created a somehow functional "deeply" nested array filtering functionality. This functionality displays car, which has a color "RED" assigned to them. However the cars, which "pass" the filter ...

  1. javascript deeply nested objects
  2. js deeply nested objects
  3. javascript flatten deeply nested array
  4. javascript check for deeply nested property

I am trying to pass an array of objects like "make":"Ford", "trim":"escape", "year":2014 into a JSON object car at following exaample var player = { "name":"John", "age":30, "car": [{"...

I am trying to pass an array of objects like "make":"Ford", "trim":"escape", "year":2014 into a JSON object car at following exaample var player = { "name":"John", "age":30, "car": [{"...

  1. pass array json
  2. pass array json ajax
  3. pass json array to spring mvc controller
  4. pass json array to mvc controller
  5. pass json array in postman
  6. pass json array to webmethod c#
  7. pass json array to web api c#
  8. pass json array to javascript function
  9. pass json array in ajax call
  10. pass json array to php
  11. pass json array to another activity android
  12. pass json array as parameter
  13. pass json array in url
  14. pass json array in intent
  15. pass json array from php to javascript
  16. pass json array to web api
  17. pass json array to mvc controller c#
  18. pass json array to mvc controller using ajax
  19. pass json array to controller
  20. pass json array to mvc controller java

this has been bugging me for ages but I can't figure out how to programmatically change an ion-toggle value. My toggle starts as on. When someone slides it off, I popup a confirmation. If they cancel ...

this has been bugging me for ages but I can't figure out how to programmatically change an ion-toggle value. My toggle starts as on. When someone slides it off, I popup a confirmation. If they cancel ...