What are some potential ways to activate a download button only after clicking on a specific link?

One potential way to activate a download button only after clicking on a specific link is to use JavaScript to listen for the click event on the specific link and then enable the download button accordingly. This can be done by initially disabling the download button and then enabling it once the specific link has been clicked.

<script>
document.getElementById('specific-link').addEventListener('click', function() {
  document.getElementById('download-button').disabled = false;
});
</script>