Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q158 How can I create a window on the initial loading of a page, but keep it hidden until it is used?

irt.org | Knowledge Base | JavaScript | Window | Q158 [ previous next ]

Q158 How can I create a window on the initial loading of a page, but keep it hidden until it is used?

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>

Feedback on 'Q158 How can I create a window on the initial loading of a page, but keep it hidden until it is used?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.