HI all,
I am very new to html / javascript. Today I have written a code that works in Sublime Text / and in chromefrom my device. I have made buttons and each time they are clicked, an mp3 plays. Here is the code as follows:
HaiCLICku
function play(audioX){ var audio = document.getElementById(audioX); audio.play(); }
</script>
I have tried to upload it to my site on wix but the buttons do not work. I am guessing it is because the mp3 files linked to the buttons are on my device and not online. ANy help would be appreciated!
Cheers