Body unload event
the parent window, the child window closes. Please help me how to solve this issue.
The method i have used in the jsp page is
function closeAll()
{
#foreach($lw in $launchwindows)
${lw.windowName}.close();
#end
}
<body bgcolor="#ffffff" onunload="closeAll()">
When i click the back button of the parent window the onunload event get called and the child window also closes. Is there any other alternative to solve the problem...?
Thanks in advance.
[627 byte] By [
RamScreena] at [2007-11-27 5:05:19]

# 2
Sorry for not mentioning the problem description....
The real problem is when i click the back button of the parent window the child window closes. It should not close the child window when i click the back button of the parent window. when i exit the parent window it closes the child window but at the same time when i click or naivgate or click the back button also the child window closes. please help me....
# 3
onUnload() will take place with all actions that cause your original page in the browser to change; it could be a submit, back, closing the window or even a refresh; because that is what is happening, the page is being unloaded().
You could probably try putting the code in your child window to check if the parent window is still open and if not, close itself.