View Full Version : [Javascript] window.close()
bozley05
March 1st, 2004, 01:18
Is it possible to use the window.close() function without having IE giving an alert that the browser is trying to close itself?
kabatak
March 1st, 2004, 07:57
you can only do that if the window you are closing is a pop up window
bozley05
March 2nd, 2004, 00:39
Damn.... coz what I wanna do is load a pop-up from flash, but coz my flash file is stand-alone I can't include javascript so I tried to create a link outta flash using the old "_blank" trick then load the pop-up automatically from that file and then auto the _blank window. I'm really stuffed now....
kabatak
March 2nd, 2004, 02:05
ahh, yeh i think you cant do that in exe
bozley05
March 2nd, 2004, 02:06
Worked it out!
Thought I would share my new found knowledge with anybody who cares.
Before you do your
self.close()
chuck in
self.opener = ""
and you will not get that annoying error, cool huh?
kabatak
March 2nd, 2004, 02:21
nice
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.