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

Q263 How can I target the main browser window?

You are here: irt.org | FAQ | JavaScript | Window | Q263 [ previous next ]

To load a document into the main window, requires you to name the main window. In the main window do:

<script language="JavaScript"><!--
name = 'mymainwindow';
//--></script>

However this will *not* work in Netscape Navigator 2 or Internet Explorer 3 as the windows name property is read only.

Then you can target the main window as:

<a href="apage.html" target="mymainwindow">link text</a>

©2018 Martin Webb