<html> <head> <script type="text/javascript"> var c = 0;
var t;
var timer_is_on = 0;
function timedCount() {
document.getElementById( ).value = c;c = c + 1;
t = setTimeout("timedCount()" , 1000);
}function doTimer() {
if (!timer_is_on) {
timer_is_on = 1;
timedCount();
}}</script> </head> <body> <form> <input type="button" value="Start count!" onclick="doTimer()"> <input type="text" id="txt" /> </form> </body> </html>
This comment has been removed by the author.
ReplyDelete