Answered
close browser code updated into Flash 9
Hi there,
I'm trying to get some old close browser code updated into Flash 9 and am having troubles.
I have this in my index.html file
<script language="JavaScript">
window.open('test.html','1','fullscreen=yes,scrollbar=no');
</script>
and then this code on a button in my flash file to close test.html
on (release) {
getURL("javascript:self.opener=self;self.close();");
}
i've also tried:
"javascript:window.open('','_parent','');window.close();");
and
"javascript:window.close();"
and
"javascript:window.opener=self; window.close()"
and
"JavaScript:self.close();"
but none of these seem to work in Firefox. Can anyone help?
Thanks in advance.
I'm trying to get some old close browser code updated into Flash 9 and am having troubles.
I have this in my index.html file
<script language="JavaScript">
window.open('test.html','1','fullscreen=yes,scrollbar=no');
</script>
and then this code on a button in my flash file to close test.html
on (release) {
getURL("javascript:self.opener=self;self.close();");
}
i've also tried:
"javascript:window.open('','_parent','');window.close();");
and
"javascript:window.close();"
and
"javascript:window.opener=self; window.close()"
and
"JavaScript:self.close();"
but none of these seem to work in Firefox. Can anyone help?
Thanks in advance.