title: JavaScript in Google Chrome
body: <p>What's the reason why some JavaScript functions won't work in Google Chrome but works fine in Mozilla Firefox?</p>
  
  <p>Like this..  </p>
  
  <p><strong>HTML code:</strong><br>
  ...    </p>
  
  <pre><code>onkeyup="calculateTotal(this.value)" 
  onclick="clickclear(this, '0')" onblur="clickrecall(this,'0')" value="0"
  </code></pre>
  
  <p><strong>JS code:</strong>    </p>
  
  <pre><code>function calculateTotal(price, quantity, cnt) {  
      if(quantity != ""){  
          var totalAmt = parseInt(document.getElementById('total['+cnt+']').value);  
          totalAmt = parseInt(quantity) * parseInt(price);
  
          document.getElementById('total['+cnt+']').value = totalAmt;
          document.getElementById('indicator').value++;
      }
      else{
          document.getElementById('total['+cnt+']').value = 0;
          document.getElementById('indicator').value--;
  
      }
  }
  </code></pre>
  
  <p><strong>And already included this:</strong><br>
  jquery1.4.2.js</p>