Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I wrote this below code in my application itz working in InternetExplorer only.Itz not working in other browsers.How to close application in all browsers.

JavaScript
protected void btnclose_Click(object sender, EventArgs e)
    {
        Response.Write("<script language='javascript'> { window.close();}</script>");
    }
Posted
Updated 28-Oct-11 3:08am
v2
Comments
Uday P.Singh 28-Oct-11 9:11am    
what do you mean by close application?
Hari Krishna Prasad Inakoti 28-Oct-11 9:15am    
means webpage

ASP.NET
<asp:button id="a" runat="server" text="sss" onclientclick="window.close()" xmlns:asp="#unknown" />
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900