PDA

View Full Version : blur and focus windows


perivision
07-18-2005, 09:33 PM
this is a fairly simple process so I'm sure its just a MM things vs. IE, but I have not been able to find anything on the web about it.

What I'm trying to do is have a window (with a flash movie) set its focus to the back (window.blur() ) and then after 10 sec, come back (window.focus() )

This works find in IE, but not FireFox.

here is the code...

function blur(){
getURL("javascript:window.blur();", "_self");
startTimer();
}
function focus(){
// instead of a button, a timer would take care of this.
getURL("javascript:window.focus();", "_self");
}

The timer call the function focus() after 10 seconds.

Any clues would be helpful. :)

Thanks

Christopher