PDA

View Full Version : close HTML window with actionscript



dodzznj
April 30th, 2002, 05:51 PM
this may seem like a ridiculous question, but how does
one go about closing an html window using a flash button.
I can't seem to figure it out.

thanks
Nate

ilyaslamasse
April 30th, 2002, 07:00 PM
on (release) {

getURL ("javascript:closeWindow()" ) ;

}In the HTML code :
(script LANGUAGE="JavaScript" )

function closeWindow(){

window.close()

}

(/script)Change () into <> in the HTML tag 'script'.

pom 0]

eyezberg
April 30th, 2002, 11:26 PM
You'll get an alert though if you try to close the main browser from a pop-up.

ilyaslamasse
May 1st, 2002, 05:32 AM
That's not what I'm doing, Eyez. Or maybe you were not talkin' to me.

pom 0]