faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 25 people (48%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can a parent window determine when the document in a child window has loaded?

Dec 24th, 2000 16:17
Juergen Thelen, Bill Fletcher,


One way to accomplish this is to define a javascript function residing 
inside your parent windows code, e.g.
function ChildLoaded()
{
  // your code
}
and to use the onLoad handler in the body tag of the document to be 
loaded into your child window to call this function then
<body onLoad="parent.ChildLoaded()">
Hope this helps.
Juergen