I don't know exactly the cause of this symptom but here goes. In our web app, we call window.open
to open a new window/tab (internally everyone's is set to open in a new tab). After opening this new tab, IE8 immediately switches the focus to it.
We then integrated a web service, so we call this web service which in turn invokes a callback javascript function when it returns. We are now calling window.open
from inside the callback function. When we do this, IE8 opens the new tab but does not switch the focus. Calls to window.focus
on the parent page and the child page do nothing.
Now, I know javascript is not threaded, but is this something to do with asynchronicity? Is there a way to get the browser to behave as expected?