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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -