I have a page on which, periodically, I have to change the URL to enable some GET parameters in the background using JavaScript, so that the page is updated using the new GET parameters.
So, for example, I will periodically do
window.location.href = window.location.host + '?' + ss;
or
window.location.search = '?' + ss;
Where 'ss' is the new query string, for example: "foo = 3 & bar = 1". These "updates" will be performed when the window is in the background.
My problem is that in IE browsers the update causes the window to steal focus. Is there anyway to avoid or get around this?
source
share