Window.close () is not working in mozilla firefox( working fine in IE)
-
Hi, I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla...... Thanking you Mcmilan.
mcmilan wrote:
I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla......
Instead of response.write,use this line code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "window.close();", true);
please don't forget to vote on the post that helped you.
-
mcmilan wrote:
I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla......
Instead of response.write,use this line code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "window.close();", true);
please don't forget to vote on the post that helped you.
-
Hi Imran, Thanks for your help.........But it is not working in mozilla..... Thanking you Mcmilan.