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

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

irt.org | Knowledge Base | JavaScript | Frame | Q1051 [ previous next ]

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

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?'


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.