I have a website that hosts typing games (.js embedded into HTML). The game pages also have ads that refresh every minute. The refresh of the ads is causing keyboard function in many of my games to lose “focus” on the game (for example, someone typing can no longer type until they click on the game again).
Is there a way to keep the keyboard’s focus on the game?
I should note: The games are coded from HaXe and compiled into .js (HTML5)