Handling Load Events in a Layout Document : Frame FrameSet : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Frame FrameSet »

 

Handling Load Events in a Layout Document



<HTML>
<HEAD>
<TITLE>Handling load events in a layout document</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function selectFrames(){
 base="frames/"
 newFrames=new Array("http://www.navioo.com","http://www.navioo.com","http://www.navioo.com","http://www.navioo.com","http://www.navioo.com")
 window.firstFrame.location=base+newFrames[Math.round(5*Math.random())%5]
 window.secondFrame.location=base+newFrames[Math.round(5*Math.random())%5]
}
//-->
</SCRIPT>
</HEAD>
<FRAMESET COLS="*,*" ONLOAD="selectFrames()" ONUNLOAD="alert('Thanks for stopping by!')">
<FRAME SRC="http://www.navioo.com" NAME="firstFrame">
<FRAME SRC="http://www.navioo.com" NAME="secondFrame">
</FRAMESET>
</HTML>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Frame FrameSet