I added background music to the site that I create (don't kill me).
If in IE the element is called BGSOUND, I tried to pause music to pause, the button deletes the whole element and re-adds it, however
it turns out that deleting an item only restarts music for IE.
How to stop music played by a BGSOUND element through javascript?
Current Code:
When I run the document.getElementById('bgmusic').stop() command
I get an Object does not support the property or method 'stop'
javascript html
Asaf
source share