I have a web-based game for two players. When the first player enters, he/she has to wait for a second player to enter, which may take several minutes. I noticed that people get bored waiting, and just leave the game after several minutes. So, I thought maybe I should tell them they can do something else, and the game will notify them when the second player comes in. My question is, what type of alert to use?
- A Javascript "alert" popup? This will work only if the browser window is in focus. But if the user switches to a word processor (for example), the alert will not bring the browser window to focus (at least with Firefox), so the user will miss it.
- A beep? This will work only if the speakers of the user are on. Also, there might be compatibility problems between browsers and operating systems.
What would you do?