function myfunc() { if( confirm('are you sure?')) window.history.back(1); }
<asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick=" myfunc(); return false;" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)