|
-
Aug 13th, 2002, 04:41 AM
#1
Thread Starter
Hyperactive Member
plus 1 every one second
I want to add 1 to value of Input every one second:
I use this code but it does not work right. What is the error ?
<form name=tt>
<input type=text name=number value=1>
</form>
<SCRIPT language="JavaScript">
function Clock()
{
NO=tt.number.value+1;
tt.number.value=NO
}
ID=setTimeout("Clock()",1000)
</SCRIPT>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|