I have this code to do a window.focus();
or a self.focus();
to stay on the current window to show a message before going to the newly opened window. This works fine on Safari. The browser pauses on the original window for the specified time before going to the new window. On Internet Explorer the browser ignores the self.focus();
call completely, does the same for window.focus();
. Is there a different way in IE to stay or focus on the current window.
if ( show_message == true ) {
var message_page = "livemass_message.php?message_id="+message_id;
message_window = window.open (message_page,'_blank','width=600,height=200,top=200,left=300,alwaysRaised');
self.focus();
setTimeout(function() { external_window.focus(); message_window.focus(); }, 3500);
setTimeout(function() { message_window.close(); }, 60000);
}
else {
self.focus();
setTimeout(function() { external_window.focus(); }, 3500);
}