JS Confirm Box

 
<!DOCTYPE html>
<html>
<head>
    <title>JavaScript</title>
    <script>
        /* Confirm Box*/
        var a = confirm ("Do you like our Website?");

        if (a) {
            alert("Thanks");
        } else {
            alert("Sorry");
        } 
    </script>
</head>
<body>
</body>
</html>