Answer the question
In order to leave comments, you need to log in
Loss of iframe input focus, how to return?
Hello,
The problem only occurs on ios 9, Safari.
The page (html5-game) is placed in an iframe, after showing an advertisement, the iframe with the game loses input focus and does not respond to any clicks. How can I force input focus back?
window.focus() or document.getElementById('gameContainer').focus(); ?
gameContainer is the div where the game canvas is created.
Will it work, and on which element should the focus() method be called? window, gameContainer or canvas with a game?
PS I wouldn't ask the question if it was possible to test all these options, but I can only solve problems "blindly", since the problem occurs only on the customer's server.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question