Hello, can stop javascript with another javascript ?
<script type="text/javascript">
function test<?php echo $row["id"] ?>(){
var sound = new Audio("<?php echo $play ?>");
sound.onended = function () {
document.getElementById("myCheck").click();
}
sound.play();
};
</script>
i get from every script diferent name test+id.
Can i stop previus script, or can i stop all sound’s, beacose on click again i have socond sound and again click have 3,4,5,6… sounds in one time