Comment #11 on issue 1674 by jtgraveaud: Can't focus popups -- blur() and
focus() seem to have opposite behavior
http://code.google.com/p/chromium/issues/detail?id=1674
A concret example of workaround (before a real fix from Chrome):
If you call blur() on the window object first before calling focus()
method, it works
(ie, the window focuses as expected).
if(typeof(win)!='undefined' && !win.closed) {
win.blur();
}
else {
win = window.open(mypage_location, mypage_name, mypage_option);
}
win.focus();
Note1: I'm currently using Chrome 3.0.195.33 / working on XP.
Note2: if for some reasons, you only want to apply blur()/focus()
workaround only to
Chrome: you can test if (navigator.userAgent.indexOf('Chrome/') > 0) { ...
}, not
very elegant though ;-)
Hope this helps.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs