I have a page on which, periodically, I must change the URL to incorporate some GET parameters in the background using JavaScript, such that the page refreshes using the new GET parameters.
So, for example, I'll periodically do
window.location.href = window.location.host + '?' + ss;
or
window.location.search = '?' + ss;
Where 'ss' is the new query string, e.g.: "foo=3&bar=1". These 'refreshes' will happen when the window is in the background.
My problem is that, on IE browsers the refresh causes the window to steal focus. Is there anyway to avoid or circumvent this?