Q695 Posted January 29, 2009 Share Posted January 29, 2009 <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> <!-- Begin var t=0 function view(){ t=t+1 document.getElementById('time').value=t } setTimeout("view()",1000) // End --> </script> <input type="text" id="time"> Quote Link to comment Share on other sites More sharing options...
webster08 Posted January 29, 2009 Share Posted January 29, 2009 <script type="text/javascript"> <!-- Begin var t = 0; function view() { t = t + 1; document.getElementById('time').value = t; setTimeout("view()",1000) } window.onload = function() { view(); } // End --> </script> <input type="text" id="time"> Quote Link to comment Share on other sites More sharing options...
Q695 Posted January 29, 2009 Author Share Posted January 29, 2009 I was doing a bad script src file, but when I switched it to a php include it worked perfectly . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.