Question : asp.net javascript close windows without prompting.

i tried both codes but none of them seems to close current window without prompting.
1:
2:
3:
Response.Write("<script language='javascript'> { self.close() }</script>"); 

        Response.Write("<script language=javascript>window.opener='';window.top.close();</script>");

Answer : asp.net javascript close windows without prompting.

You can use below code also.
1:
Response.Write("<script language=JavaScript> window.open('','_parent',''); window.close(); </script>");
Random Solutions  
 
programming4us programming4us