Forum Moderators: open

Message Too Old, No Replies

Frames. New approach

Parent frame onload event.

         

Adam5000

2:12 pm on Apr 3, 2006 (gmt 0)

10+ Year Member



I'm using frames on my pages and on the child page titled "Universal_Home_page.htm" I've got a function that starts an annimation sequence. Is there a way to call the function startAnnimation() from the parent frame using the onload event in the body tag? If I'm right, the onload event in the parent frame executes a command after all child frames have loaded.

<html>
<head>
<title>Parent frame page</title>
</head>
<frameset cols="100%,*" onload="Call function startAnnimation() on Universal_Home_page.htm">
<frame src="Universal_Home_page.htm" name="fr_home"/>
<frame src="Universal_sound_page.htm" name="fr_sound"/>
</frameset>
</html>

DrDoc

4:54 pm on Apr 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



onload="fr_home.startAnnimation()"