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