Código:
function openit() { var wnd; wnd = window.open('FRAME1.asp'); wnd.onunload = function(){ alert('La ventana se cerró!); } }