Thursday, 20 August 2009

How to close a window with an asp button (ASP.Net) using Javascript

A really handy way to do this:

<a href="#" onClick="javascript:window.close();">
   <asp:Button ID="btnCancel" Text="Cancel" runat="server" />
</a>

No comments:

Post a Comment

Note: only a member of this blog may post a comment.