header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
krishna
Points:0
Posts:0

9/22/2011 5:20:10 AM

Title: Browser close event is not working in Mozilla fire fox


Hi All,

I have a button in my application, if i click the button the browser should automatically close, but my code is working only, IE, Chrome and Opera but its not working in mozilla

But if i am connecting to locally its working in mozilla, but if i move to the server its not working.

Please check the below code , is there modifications, Can any body please help me, its very urgent,

//to close the Browser
function closeBrowser()
{
// Internet Explorer
if (navigator.appName.indexOf("Microsoft")!=-1)
{
window.close();
return;
}
else if(navigator.userAgent.indexOf("Firefox")!=-1)
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.open('','_self', '');
window.close();
}else
{
// Other Browsers
window.open('','_self', '');
window.close();
}
}

Thanks & Regards,
krishna




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions