how to display the current date and time with live seconds? ex. Feb. 25, 2008 10:00:xx am (live sec.)
hi very good example but its inside a <form>, i see websites that displays time and date w/out a <form> how can we do that sir? and the secs. does not play if we dont put it in a form.
Replace the whole form with: <div id="clock"></div> HTML: And replace: document.forms[0].display.value = clock Code (javascript): With: document.getElementById('clock').innerHTML = clock; Code (javascript):