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>