PDA

View Full Version : Counter help



feras_wilson
Jan 27th, 2007, 12:44 PM
Hi all!
I need help with this code.
its a counter.


var count= 0
function onm() {
atextbox.value=ffee
count++
setTimeout(onm(),100)
}

And in the body:


<body onload="onm()">
<input type="text" value="0" name="atextbox">
</body>

I get always an error:
Out of memory
Please help me

vwphillips
Jan 27th, 2007, 02:37 PM
var count= 0
function onm() {
atextbox.value=ffee
count++
setTimeout('onm()',100)
}

feras_wilson
Jan 27th, 2007, 05:52 PM
Thanks
Thanks a lot.::

feras_wilson
Jan 27th, 2007, 05:53 PM
var count= 0
function onm() {
atextbox.value=ffee
count++
setTimeout('onm()',100)
}



<input type="text" name="atextbox" value="0">