0

So i need to know, how can i play an mp3 on button click, after my first function that removes the button.Where do i even put my mp3 in?

Imagine: Click button, Button removes, sound plays.

HTML

<a class="button1" id="hideButton" onclick="removeButton()"> PRESS </a>

JS

function removeButton() {
  var button = document.getElementById("hideButton");
  button.remove();
}

Thx for any help

David S
  • 33
  • 6

0 Answers0