I'm currently trying to make a volume slider for my site, due to the fact i know very, very limited js - i cant figure out how.
code below
var audio = new Audio("audio.mp3");
audio.volume = 1;
audio.loop = true;
document.onclick = function() {
audio.play();
}
i tried using ids, classes and more still didn't work for me