Opera failed with this code:
var w;
$('button').on('click', function () {
if (w && !w.closed && window.focus) {
w.focus();
} else {
w = window.open('http://google.com', 'google');
}
});
After we open new window and go back to parent window, we could not set focus back to child window in Opera. But other browsers work correct. Even IE. Any thoughts?
You could try this code on jsbin
Have a look at the option
There is a screenshot of this preferences dialog near the bottom of this page:
http://www.javascripter.net/faq/windowresizeto.htm