javascript - How to handle closing of a previously opened window -
i have form user fills out stuff. towards end click on link opens new window record video. once done recording close window.
how can react closing of window on first window form? may want submit form automatically or have ajax request started display info etc... if isn't possible suggest?
edit:
parent window:
function somealert() { alert("success"); }
child window:
window.onunload =window.opener.somealert();
if opened window.open, can call
window.opener.somejavascriptfunctioninparent();
call window.onunload
or right before window.close()
Comments
Post a Comment