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

Q1051 How can I load another document in the second frame after the first frame has completed loading?

You are here: irt.org | FAQ | JavaScript | Frame | Q1051 [ previous next ]

It depends. If you are loading the complete frameset from scratch, then you could use the FRAMESET onLoad event handler:

<frameset onLoad="frames[1].location.href='http://www.irt.org'">
<frame src="page1.htm">
<frame src="page2.htm">
</frameset>

If you have access to the page in the first frame, then you could use the BODY onLoad event handler:

<BODY onLoad="parent.frames[1].location.href='http://www.irt.org'">

Feedback on 'Q1051 How can I load another document in the second frame after the first frame has completed loading?'

©2018 Martin Webb