R
R
Riddik2015-09-28 13:31:05
JavaScript
Riddik, 2015-09-28 13:31:05

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

1 answer(s)
A
Alexey Lebedev, 2015-09-28
@swanrnd

Remove ads in IOS9, or to the ad support.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question