I'm creating a game in a web page and I think it will be better, if when the user accidentally click back (in tablet or phone) then will appear a confirm box to stay.
I would like to use an own style confirm box (with more options) instead of the original. Well, now I use onbeforeunload
JavaScript Event. Although I can't change the style, I can add more things to do when it happens. So I think if it can be hidden, then it's enough for me :D