faqts : Computers : Programming : Languages : JavaScript : Document

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

7 of 8 people (88%) answered Yes
Recently 7 of 8 people (88%) answered Yes

Entry

How parent win can know when a PDF file has finished loading in a child win?

Aug 24th, 2001 17:23
Juergen Thelen, Cathy Low,


Just embed the desired PDF file in your child document using

  <EMBED src="my.pdf" ... ></EMBED>

Most browsers will fire an LOAD event when the embed finished loading, 
so you can use the onLoad Handler in your childs <BODY> tag to call a 
function residing in your parent window, e.g.:

  <BODY onload="parent.ChildFinishedLoading()">

Hth, Juergen