Hi
Naveen,
You can do using maintain all window in list.
Somewhere at the top of your script in your main document you include a
line:
var children=Array();
Now whenever you want to open a new child window make sure you use a line similar to:
children[children.length]= name of the window;
You can then have one function such as:
function closeAllChildren()
{
for(var n=0;n<children.length;n++)
{
children[n].close();
}
window.close();
}
Each child document just needs a button to call this function as follows.
<input type="button" onclick="window.opener.closeAllChildren()">
Please do let me know, if you have any doubt.
Please provide "
Vote":thumbsup: if this would be helpful, and make "
Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen