Witam,
chciałbym podmienić zawartość diva "btn", ale nie działa.
<div class="btn"><button onclick="play();">PLAY</button></div>
<script>
const nova = new Audio('audio/nova.mp3')
function play() {
nova.play();
document.GetElementById('btn').innerHTML='<button onclick="stop();">STOP</button>';
}
function stop() {
nova.stop();
document.GetElementById('btn').innerHTML='<button onclick="play();">PLAY</button>'
}
Z góry dziękuję za odpowiedzi