The else Block Responds to a false Value : If : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » If »

 

The else Block Responds to a false Value



<html>
<head>
  <title>The else Block Responds to a false Value</title>
</head>
<body>
  <script type="text/javascript">
  <!--
    var purchaseAmount;
    purchaseAmount = 101.00;
   
    if(purchaseAmount > 500.00){
      document.write("Thank you for your purchase!");
    }else{
      document.writeln("Thank you, but surely there is something ");
    }
  // -->
  </script>
</body>
</html>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» If