I have put this code in my child window java script part to Close Parent window from child window
try
{
if(!window.opener.closed)
{
alert(window.opener.location);
window.opener.close();
}
}
catch(err)
{
}
But while clicking the close button , its giving one alert message "the window you are viewing is trying to close . Do you.....?".
I dont want this message.
Can anybody help me in thi.
Thanks in advance
Windows Warning message is coming when trying to Closing Parent window from child window
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Dec 1, 2008, 6:32 AM EST
check this:
http://www.integra4notes.com/faq/pages/0130