SyntaxFix
Write A Post
Hire A Developer
Questions
You just need to add this property in your asp:Button element (for example):
OnClientClick="javascript:window.close();"
It works perfectly.