Click to See Complete Forum and Search --> : Reloading window without gaining focus


ravelcop
08-10-2003, 08:39 PM
I have a page where I created a script that will auto-reload the document every after 5 mins. The problem is, when that page is open and I open another browser window, it keeps on focusing as it reloads. Irritating to users that is fond of opening a lot of browser windows.

I just want that window to reload it page without gaining focus so that it won't bother the user who is browsing on a different window. It just keeps updating the page. How is it done?

I thinks the solution will also pave way to the other problem that I have. I want a child window to reload the page of it's Opener window without passing the focus to that Opener window. Is that possible? I use IE 5, I don't actually mind if it won't work with other browsers. Thanks!

ibidris2003
08-11-2003, 06:29 AM
Alright this should work in IE window.blur()

http://galileo.spaceports.com/~ibidris/

ravelcop
08-11-2003, 08:54 PM
Thanks for the reply.

I tried applying that one but it didn't change anything. The window will still focus upon reloading although it unfocuses after the document has been reloaded completely. It still didn't answer my problem, it is still annoying to users. I would like it to reload in background, not being noticed. Here's my code.

function window.onload(){
setTimeout('window.location.reload(true)',300000);
window.blur();
}

The first line will always gain focus on the window although the second line will unfocus it afterwards. Any other idea what function I should use to reload a page without gaining focus?