You are here: irt.org | FAQ | JavaScript | Window | Q158 [ previous next ]
When opening the new window using window.open(), follow it with a self.focus();
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
myWindow=window.open('','windowName','add you list of properties in here');
self.focus();
myWindow.href = 'apage.html';
if (!myWindow.opener) myWindow.opener = self;
//--></SCRIPT>
</HEAD>