Say, you want to play a beep.mp3 on the hour so you wrote JavaScript code that does this, which is not all that hard. But when the user switches to another tab, and your page soon becomes living in an inactive tab, you won't hear those audio alerts any more.
Is there a remedy for this?