I got difficulties with my code. Everything is running well except the var counter and the div is not changing their values as you can see its always on 26. What I need is on my web page every time I refresh I need to see an updated value I tried searching over many forums sites etc, but no luck.
Here you can see the code :
<head>
<script type="text/javascript">
var counter = 26.00
var timer;
function countUP () {
counter = counter + Math.random();
document.getElementById("hugee").innerHTML =(counter).toFixed(5);
}
</script>
</head>
<body onLoad='timer = setInterval("countUP()", 5000);'>
<div class="col-xs-9 text-right">
<div class="huge" id="hugee">26.00</div>
</div>
</body>