markymark Posted August 18, 2008 Share Posted August 18, 2008 I'm trying to open a page from another in IE7. The code I have included but the opener window always remains on top. I've tried to focus the window using win.focus() but that doesn't work. Is there a solution?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" language="javascript">function launchAPageInWindow() { var win=window.open("MyPage.html","myNewWindow","menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no,width=2548,height=1024,top=0,left=0"); } </script><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body onload="launchAPageInWindow();"></body></html> Link to comment Share on other sites More sharing options...
Ingolme Posted August 18, 2008 Share Posted August 18, 2008 I've tried your code in Firefox 3 and Internet Explorer 7 and I'm not getting that problem. Link to comment Share on other sites More sharing options...
Kingy Posted August 18, 2008 Share Posted August 18, 2008 I thought the window opener, if you click on the parent page, it'll just disappear behind it. As far as I know it's a miracle that yours is staying on top with that code. >.> Link to comment Share on other sites More sharing options...
Jesdisciple Posted August 18, 2008 Share Posted August 18, 2008 Woops... I misunderstood the problem.Are there any security settings in IE that might cause this, anyone? Link to comment Share on other sites More sharing options...
Synook Posted August 19, 2008 Share Posted August 19, 2008 Are you sure MyPage.html doesn't have a peice of code that says window.onblur = function() { window.focus(); return false; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.