I have a mobile website that plays a background song. When I pressed the home button on my phone and leave the browser the song keeps playing until I go back on the browser and close the tab. this is the code for the song I have.
Unsupported in Firefox
How would I make it so the song only plays when I am viewing the page? Browser is Google Chrome and device is Android.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)