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