Is there any way of playing a sound/audio file continuously (using JavaScript) when a button (HTML) is pressed ?
i.e., as long as the button is pressed, the sound plays - once lifted the sound stops.
I've got the sound to play onclick - but obviously it stops after x amount of seconds.
Is there any way to keep it playing until lifted ?
Thanks :)
mousedownevent andmouseupevent - CertainPerformanceloopattribute, as specified here. Otherwise, please post the relevant source code. - jknotek