I have a case where if users clicks logout link, he will be directed to logout.aspx page and in the page_load of logout.aspx page.....i have added this code:
This below pasted code works fine on IE6 and IE7 but not in firefox....i did search on google and tried all the ways that i found like adding:
// Scripts & Windows prefs
pref("dom.allow_scripts_to_close_windows", true);
but nothing seams to be working for firefox??? is there any work around to fix this issue so that it works on IE and Firefox as well????
thanks a lot in advance............
==================================================================================
// Build A JavaScript String That Will Close This Web Browser Window
StringBuilder jsScript = new StringBuilder();
jsScript.Append("<script language='javascript' type='text/javascript'>");
jsScript.Append("window.close();");
jsScript.Append("</script>");
//Add The JavaScript To The HTML Stream
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "CloseBrowser", jsScript.ToString());
==================================================================================