Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : Correct way to close a browser window from Flash?


dgh1943
5/25/2004 10:29:34 PM
Could somebody perhaps tell me what code I could use on a button to close the
browser window from the SWF without getting the Internet Explorer alert, "Do
you want to close this window?" ... any help would be highly appreciated and I
thank you in advance. dgh
Jack.
5/25/2004 10:58:24 PM
to close a pop up -
on (release) {
getURL("javascript:window.close();");
}

to close pop up and parent , cross browser, w/o warnings -
getURL("javascript: window.opener=self; window.close();");

hth
dgh1943
5/25/2004 11:01:45 PM
AddThis Social Bookmark Button