Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

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>

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

©2018 Martin Webb