file_data_download.html (385B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test download attribute for data: URI</title> 5 </head> 6 <body> 7 <a href="data:text/html,<body>data download</body>" download="data-foo.html" id="testlink">download data</a> 8 <script> 9 // click the link to have the downoad panel appear 10 let testlink = document.getElementById("testlink"); 11 testlink.click(); 12 </script> 13 </body> 14 </html>