Skip to content

Instantly share code, notes, and snippets.

@inf3rno
inf3rno / a-download-msie11.js
Created Jan 24, 2018
Download Data URI support for MSIE11
View a-download-msie11.js
(function (){
addEvent(window, "load", function (){
if (isInternetExplorer())
polyfillDataUriDownload();
});
function polyfillDataUriDownload(){
var links = document.querySelectorAll('a[download], area[download]');
for (var index = 0, length = links.length; index<length; ++index) {