J
Jason Carlton
I'm using window.open to open a PDF file in a new window. After it's
loaded, I want to redirect the parent page. The order is important
because the PHP file that I redirect to will delete the PDF file that
was opened.
If I just do this:
onClick="window.open('sample.pdf', 'PDF', 'width=640, height=490,
resizable, scrollbars=1, titlebar=1'); window.location='file.php?
q=del&filename=sample.pdf'; return false">
then it deletes sample.pdf before the browser connects to open it.
Since this is a PDF, there's not a <body...> tag for me to send info
back to the parent. Is there any way for the parent to tell when the
child has fully loaded?
loaded, I want to redirect the parent page. The order is important
because the PHP file that I redirect to will delete the PDF file that
was opened.
If I just do this:
onClick="window.open('sample.pdf', 'PDF', 'width=640, height=490,
resizable, scrollbars=1, titlebar=1'); window.location='file.php?
q=del&filename=sample.pdf'; return false">
then it deletes sample.pdf before the browser connects to open it.
Since this is a PDF, there's not a <body...> tag for me to send info
back to the parent. Is there any way for the parent to tell when the
child has fully loaded?