The project I'm working on requires us to create a pop-up window and then change focus to the parent window. Many solutions that seem to have worked in the past do not seem to work at all in many new versions of Chrome, Firefox, Safari, and iOS 8 Safari. For example, this W3C demo http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_blur does not work in these browsers, but it works correctly in IE10 and below.
It seems that browsers may have started to ignore this feature, but I have not seen any documentation about this. Can someone point me to an alternative to window.focus () and window.blur () that will work on iOS 8 Safari, or at least some documentation on deprecated methods?
----- To tell more about my colleague ----- Mike L.P.
The situation is as follows:
We have a web application that requires the explicit use of a popup. Overlays and frames are optional due to some technical limitations.
While it is undesirable, it’s normal that a newly created pop-up window receives focus when opened, but we have a button in the pop-up window that, when pressed, should return focus to the parent window, leaving the pop-up window open.
, , iOS 7 Safari. , IOS 8 .