p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   closed parent window when opened child window (http://p2p.wrox.com/showthread.php?t=48780)

jaiwin October 8th, 2006 12:54 PM

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


All times are GMT -4. The time now is 08:03 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.