I looked on the internet for code to close a html game when playing on the ipad. None of them work. I did see it said that maybe it doesn't on safari. I first searched for a way to stop the game loop when the errors were >3. Then I thought I would just stop the program. None of that works. How do you suggest I stop the game loop and show a dialog "you lose". Thanks for any help. I really did work on this all day with no success.