3 <a download="foo.exe" href="">link</a>
5 var blob = new Blob(['foo']);
6 document.querySelector('a[download]').href = webkitURL.createObjectURL(blob);
8 url = window.location.href
9 document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1)
10 document.querySelector('a[download]').click()