I'm making a friend's website and I have an
<a> tag to link to a page about a game he's making. I also have a
<button> inside that
<a> tag to download the game. Since the button is inside the
<a>, it follows the source of the link as well as downloading the file. How can I make the button do its own thing without following the
<a> tag? Here's an image of what it looks like.
Add a event listener for the button and use event.stopPropogation(). Let me know if you need help wth this!