Click to See Complete Forum and Search --> : Javascript - Child window events


fizch
December 22nd, 2003, 05:06 PM
Is there an event for a child window closing? I need to know when the child window closes so that I may perform some actions on the parent.

fredmv
January 7th, 2004, 05:22 AM
<script type="text/javascript">
//<![CDATA[
var w = open();

with(w.document)
{
write('<h1>child</h1>');
close();
}

w.onunload = function() { alert('child window closed'); }
//]]>
</script>