[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / test / data / download / download-attribute.html
blob4fd070db96e3bf8942b6113de2229b9053f32077
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <a download="suggested-filename" href="">link</a>
5 <script>
6 var anchorElement = document.querySelector('a[download]');
7 url = window.location.href;
8 anchorElement.href = url.substr(url.indexOf('=') + 1);
9 anchorElement.click();
10 </script>
11 </body>
12 </html>