Using External Interface to call javascript close window - firefox issue

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.