In Association with Amazon.in   Flipkart

Tuesday, July 9, 2013

Javascript Confirm Dialogbox With Example

Confirm Box: To display some  confirm message which returns  a Boolean (True/False).

Example for confirm

<html>
<head>
           <script>
          
           a = confirm('Are you sure');
           if(a==true)
                     {
                        alert('Selected OK');
                     }
           else
                     document.write('Cancelled');
           </script>

</head>
<body>
</body>
</html>

No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...