# Using External Interface to call javascript close window - firefox issue

**URL:** <https://forum.kirupa.com/t/using-external-interface-to-call-javascript-close-window-firefox-issue/266196>\
**Category:** flash\
**Created:** [July 17, 2008, 5:13am UTC](https://forum.kirupa.com/t/using-external-interface-to-call-javascript-close-window-firefox-issue/266196 "2008-07-17T05:13:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![katmac](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@katmac](https://forum.kirupa.com/u/katmac)\
**Post date:** [July 17, 2008, 5:13am UTC](https://forum.kirupa.com/t/using-external-interface-to-call-javascript-close-window-firefox-issue/266196/1 "2008-07-17T05:13:19Z")

</div>

Hi,

I am using a button in Flash that calls a javascript function to close the window.

Flash button code:

[INDENT][FONT=Courier New]ExternalInterface.call(“closewindow”);[/FONT]  
[/INDENT]The javascript on the html page is:  
[INDENT][FONT=Courier New]function closewindow (){[/FONT]  
[FONT=Courier New] self.close();[/FONT]  
[FONT=Courier New]}[/FONT]  
[/INDENT]The external interface call definitely works cos I can call alerts and other js functions without issues in any browsers. But when I try to close the window it only works on IE.

Does anyone know of any issues that may cause it window.close not to work in Firefox on Mac/PC?

Thanks heaps.
