[thelist] Javascript: tricky closing of window
Candace Maynard
Candace.Maynard at popart.com
Tue Feb 6 16:48:35 CST 2001
onLoad="window.parent.close();" should work.
Your user will probably still get a prompt asking
them if they really want to close a window, however.
I've had success using 'window.parent.location="somehref.html";',
so this should work for you. Good luck; hope this helps.
:)
Candace
-----Original Message-----
From: Karl de Lautier @ Datawebs [mailto:datawebs at email.com]
Sent: Tuesday, February 06, 2001 1: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