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

Q221 How can I change the location of the main window once a document from another server has loaded?

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

Use frames with a hidden dummy frame. Use the frames onLoad event handler to change the location of one of the frames.

<FRAMESET ROWS="100%,*" onLoad="location.href='http://www.netscape.com'">
<FRAME SRC="http://www.microsoft.com">
<FRAME SRC="blank.html">
</FRAME>

©2018 Martin Webb