file_download_attribute.html (424B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test download attribute for http site</title> 5 </head> 6 <body> 7 <a href="http://nocert.example.org/browser/dom/security/test/https-first/file_download_attribute.sjs" download="some.html" id="testlink">download by attribute</a> 8 <script> 9 // click the link to start download 10 let testlink = document.getElementById("testlink"); 11 testlink.click(); 12 </script> 13 </body> 14 </html>