2
Answers

confirm box in asp.net

Photo of Rajavel G

Rajavel G

8y
182
1 Others
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)