hello, i have a simple button
<a onclick="window.location.href=window.location.href" class="btn"> Stop </a>
and i have an audio source
<audio id="myAudio"> <source src="https://myweb.com/files/tuntun.mp3" type="audio/mpeg"> </audio>
and this is javascript
<script>
var x = document.getElementById("myAudio");
function playAudio() {
x.play();
}
</script>
i want the audio play before refreshing the page when i click the button, i tried but my audio stops while refresh. Bye the way i need it for ANDIOID Browser
I hope you can understand what I need because I'm bad at English