Re: JS question: how to create dynamicly generated link?
Is this what you want to do?
This is an example of what you might want to do. This uses an event listener look at the link and at the script tag.
For best results, use closer to a modern browser.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<a id="specialLink" href="" download >Thing to download</a>
</body>
SPAM
var specialLink = document.getElementById("specialLink");
var numClicks = 0; //this will count number of clicks
specialLink.addEventListener("click", function() {
if (numClicks>=1) { //if somebody clicked the
link once, the href attribute will become a random string
specialLink.setAttribute("href", "fe");
specialLink.setAttribute("aria-disabled");
}
numClicks = numClicks+1;
});
</script>
</html>
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector