Subhani Shaikh

Subhani Shaikh

  • NA
  • 28
  • 5.3k

In Asp.net Browser closed

Nov 27 2015 5:31 AM
Hi All,
Please help me in closing browser when clicked on log out button
 
string strClose = "<script language=\"JavaScript\">window.opener='X';window.open('','_parent','');window.self.close();</script>";
Page.ClientScript.RegisterStartupScript(typeof(string), "clientScript", strClose);
 
 i used above code but its not working, please help me. 

Answers (2)