I try to play audio with javascript. I already found out how to do so in this thread:
var audio = new Audio('audio_file.mp3');
audio.play();
but there is no info on how to stop the audio again.
I tried audio.stop()
but i get index.php:133 Uncaught TypeError: audio.stop is not a function
I was wondering how i can find out all available methods from an object?