Use if statement to check the returning value from a confirm dialog : If : Statement JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Statement » If »

 

Use if statement to check the returning value from a confirm dialog

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var response = confirm("Do you want to proceed with this book?  Click OK to proceed otherwise click Cancel.");
if response == true )
{
    alert("A fine choice!");
}
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Statement
» If