View Single Post
  #1 (permalink)  
Old October 8th, 2006, 12:54 PM
jaiwin jaiwin is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default closed parent window when opened child window

When I open child window at that time closed parent window.

Closed parent window when open child window or popup window.

I want solution for this. Anybody can help me?


Parent window like this
------------------------
<html>
<head>
<script language="JavaScript1.2">

function openWin()
{
    loginwin = window.open ("blank.html","eG_" + (new Date()).getTime(),"toolbar=no,menubar=no,location= no,status=no,width=1012,height=709,left=0,top=0,sc reenx=0,screeny=0,resizable=yes, target=('_self')");
    loginwin.focus();
}

function closeWin()
{
    if(loginwin && !loginwin.closed)
        loginwin.close();
}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC" onLoad="openWin()";onUnLoad="closeWin()">





</body>
</html>
--------------------------------------------------------------------
Child Window (or) Popup Window like this
-----------------------------------------
<html>
    <body>

This is popup window.
    </body>
</html>
-------------------------------------------------------------------



Regards,
Jaiwin
Reply With Quote