Rajavel G

Rajavel G

  • NA
  • 95
  • 44.4k

confirm box in asp.net

May 19 2017 3:55 AM
function confirm()
{
if (window.confirm("Press a button!") == true) {
return false;
} else {
return false;
}
}
 
 
<asp:Button ID="btnnext" Text="Submit Test" Height="39px" runat="server" OnClientClick="return confirm();" OnClick="btnnext_Click" />
 
 
 i have a error on not available confirm. 
 

Answers (2)