Jump to content

window.open in IE7


markymark

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...