Get value from function and put in textbox
-
hello folks,this is basically my first question. help me out i have created a system running clock in javascript and am able to display the value on the page by the document property... by calling a function in loop... can u tell me how to display this value in the textbox...the code is
Ish Kumar Kapila
-
hello folks,this is basically my first question. help me out i have created a system running clock in javascript and am able to display the value on the page by the document property... by calling a function in loop... can u tell me how to display this value in the textbox...the code is
Ish Kumar Kapila
-
Hi! Because you haven't defined a name for the input box. Just define a name such as name="box1" and then use the ID with document.form.box1.value statement in the function.
sorry buddy it did not worked... see the new code help me guys... Ish Kumar Kapila
-
sorry buddy it did not worked... see the new code help me guys... Ish Kumar Kapila
-
Still nothing happened buddy. is the problem so complex to solve.. plz try again ... thanx for the effort try something new Ish Kumar Kapila
-
Still nothing happened buddy. is the problem so complex to solve.. plz try again ... thanx for the effort try something new Ish Kumar Kapila
Hi! I just fixed the code for you. There were a few mistakes. Copy and paste the whole code below in to a page and then load the page. I have checked it and it is working... :) New Page 1 function time() { var d=new Date() var h=d.getHours() var m=d.getMinutes() var s=d.getSeconds() var ms=d.getMilliseconds() document.getElementById('txt').innerHTML=h+":"+m+":"+s+":"+ms t=setTimeout('time()',50) document.form.tbox.value=t }