Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: CLOSE WINDOW |
From: | Cameron Hickey |
Date: | Wed, 13 Dec 2000 04:30:34 GMT |
the use of the .close() method is more effective when you use named windows
as a reference
for example
when you open a window, set that functino equal to a variable
newwindow = window.open("win.html",win)
then you can call newwindow.close()
below is a complete example
<html>
<head>
<title>Untitled</title>
</head>
<body>
<SCRIPT LANGUAGE="javascript">
function openMe()
{
f = window.open("test.html",
"newwindow","toolbar=no,status=yes,width=248,height=224,resizable=1,scrollba
rs=no,menubar=no")
}
</SCRIPT>
<a href="javascript:openMe();">open</a>
<br><br>
<a href="javascript:f.close();">close</a>
</body>
</html>
You can call f.close() from the main window
I hope this answer helps you out...
in the future, you should put an "OT" in your subject when you ask
Javascript questions
Cameron
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Meshach
Weber
Sent: Tuesday, December 12, 2000 7:27 PM
To: flasherchinwag [dot] com
Subject: FLASH: CLOSE WINDOW
Does anyone have a quick answer?
I have a Flash site that launches a blank window with frames and I want to
have it close with the users click. I have tried this script:
<html>
<head>
<title>WindowCloser</title>
</head>
<body onload="self.close() ">
</body>
</html>
in a linked page and it doesn't work: all it does is make the screen blank
(closing the embedded frame but not the window.) Any ideas? There is
probably a much better way.
Thanks in advance!
----------------------------------------------------------
Meshach Weber
Field To Frame formerly Tele Edit
Director of Media & Internet Services
Phone: +1-612-333-5480
Fax: +1-612-333-6927
<meshach [dot] weberfieldtoframe [dot] com (Mailto:meshach [dot] weberfieldtoframe [dot] com)>
----------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: CLOSE WINDOW, Meshach Weber
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]