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

Q263 How can I target the main browser window?

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

Q263 How can I target the main browser window?

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>

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.