Did I cheat? Copyright © 2008-2016 Mkyong.com, all rights reserved. When I first create a window the window comes into focus, but subsequent attempts to bring focus to the window do not work. You try this solution. navigate here
Drying hydrogen chloride gas Should I allow my child to make an alternate meal if they do not like anything served at mealtime? Can leaked nude pictures damage one's academic career? Join them; it only takes a minute: Sign up window.focus() not working in Google Chrome up vote 33 down vote favorite 14 Just wondering if Google Chrome is going to support focus is not working in IE %MINIFYHTMLc195906004f59bfe4520b811b94d07b02% The above code is working fine in Firefox (FF), but not in Internet Explorer (IE).
Also, try and clean up your question a little. –Andy Earnshaw Jul 8 '09 at 7:09 Are you doing this in the onload handler? –Maurice Perry Jul 8 '09 US Election results 2016: What went wrong with prediction models? It's worth noting that this works only for popups opened from the same domain, as cross-origin restrictions would apply.
- Effect of bootstrapping in amplifier circuit How many seconds are a meter in the 4th dimension?
- Can you confirm that it works on both Windows and Mac? –Nick Aug 4 '10 at 23:58 @Nick - I only tested it on Chrome for Windows. –nickytonline Aug
- Not the answer you're looking for?
- The function mostly works except on .focus(); the page just reloads.
Thanks a lot.. –SKSK Jul 8 '09 at 10:01 2 I don't understand why this works, but so be it. –Jacksonkr Jun 15 '15 at 16:54 I don't
How? Did the GoF really thoroughly explore "Pattern Space"? Should I trust a website which breaks when I use a complex password? Html Input Focus Not Working You'll just need to make sure that you are able to grab everything you need for the new window.
The document changes location to the form's action and the focus is lost anyway. I create these namespaces elsewhere in code. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. weblink Hot Network Questions What is this line of counties voting for the Democratic party in the 2016 elections?