0

we are using following solution for downloading current page, but this solution doesn't work in IE11.

<a download="view.html" onclick="this.href='data:text/html;charset=UTF-8,'+encodeURIComponent(document.documentElement.outerHTML)" href="#">Download</a>

Is it possible to have similiar solution which works in IE11?

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
user1089362
  • 546
  • 7
  • 29
  • Similar question: [blob download not working in IE](http://stackoverflow.com/questions/20310688/blob-download-not-working-in-ie) – Yogi Apr 21 '16 at 11:02
  • No, it's not similar. – user1089362 Apr 26 '16 at 09:05
  • You need to use [msSaveBlob](https://msdn.microsoft.com/en-us/library/hh779016%28v=vs.85%29.aspx). As noted in the similar question, IE does not have a download attribute. See [chart](http://caniuse.com/#feat=download) – Yogi Apr 26 '16 at 09:16

0 Answers0