onbeforeunload in an iframe

T

Tim Streater

I have an iframe in which I load a page. This page may be replaced,
later, by a second page. When this happens, the first page would like to
do some tidy up - so when first loaded, the first page registers an
onbeforeunload handler.

Problem is that the onbeforeunload event of the first page doesn't seem
to fire when the second page is loaded. This is in Safari 6.0 Mac. Is
there anything about the above scenario which would prevent this event
from firing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top