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"> Link to comment https://forums.phpfreaks.com/topic/142930-solved-timer-help/ 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"> Link to comment https://forums.phpfreaks.com/topic/142930-solved-timer-help/#findComment-749373 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 . Link to comment https://forums.phpfreaks.com/topic/142930-solved-timer-help/#findComment-750014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.