diff --git a/html/js/calc.js b/html/js/calc.js index 2fa8756b1..ba8805d10 100644 --- a/html/js/calc.js +++ b/html/js/calc.js @@ -95,10 +95,14 @@ if ( counter%2 != 0 ) function Clean() { str=""; + counter=0; + val=""; this.document.getElementById('listing').innerHTML=""; this.document.getElementById('result').innerHTML=""; this.document.getElementById('sub_total').innerHTML=""; this.document.getElementById('inp').value=""; + this.document.getElementById('inp').focus(); + } function Compute()