play audio element from code js code example Example: html play audio programmatically document.getElementById('yourAudioTag').play();