.log('Link copied to clipboard');
            window.alert(copyLinkMsg);
        }).catch(err => {
            console.error('Could not copy text: ', err);
            console.log('Fallback to prompt');
            window.prompt(promptMsg, link);
        });

        event.preventDefault();
        return false;
      }
  </script>
</body>
</html>
