[thelist] Javascript: tricky closing of window

Tab Alleman talleman at autobex.com
Tue Feb 6 16:49:32 CST 2001


have you tried window.opener.close() ?

(this would only work if the pop-up were created with the window.open()
method from mainWin)

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Karl de Lautier @
Datawebs
Sent: Tuesday, February 06, 2001 4:17 PM
To: thelist at lists.evolt.org
Subject: [thelist] Javascript: tricky closing of window


I have a framed window, named mainWin, which produces a pop-up, named
newWin. What I want to do is OnLoad of newWin is to close mainWin. In the
body tag I have tried OnLoad="mainWin.close()" and variations, and even
OnLoad="opener.window.close()" and variations, all to no avail. Does anyone
have any ideas?

Cheers
Karl

-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list