I have this requirement :-
onunload event I display a popup, and waits for closing of that popup, then want to continue with unload process.
I put an loop checking popup is closed or not, if not then loop still executes.
once popup closed loop breaks and onunload process gets continue.
This is working fine in IE, Firefox reports an warning “unresponsive script”.
there is one solution exists for avoiding this warning, since in my case this loop may excute undefinitely so firefox hangs up here.
IE is working fine with this code.
[B]I changed my approach like:-
onunload I displays popup. onclose of that popup I calls a parent window method (this method is having code that is going to excute after popup is closed).
[B]Problem with this Approach:-
since onunload is in process, after opening childwindow it doesn’t wait and my page is getting unload. so there is no point that parent window method will be called on child window close event.
I want to put an condition that unload process should wait untill popup is closed.
Please help.