July 22, 200917 yr I am completing a course through distance learning and one of the examples that they use is to show the current time on a webpage. There is a code that you follow and I have done so to the letter yet it does not work. The code is <html> <head> <title>Setting the Time</title> <script language="JavaScript"> function time() { nowTime = new Date() document.timeform.time.value = nowTime.gethours() + ":" + nowTime.getMinutes() + ":" + nowTime.getSeconds() } </script> </head> <body> <form name="timeform"> The time is now: <input type="text" name="time" value="" maxlength="50" /> </form> <script language="JavaScript"> time() </script> </body> </html> Ideas??
Create an account or sign in to comment