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
<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')");

function closeWin()
    if(loginwin && !loginwin.closed)

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

Child Window (or) Popup Window like this

This is popup window.


All times are GMT -4. The time now is 07:56 PM.

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