Сокращенные Линии Программирования
function timeClock()
{
setTimeout("timeClock()", 1000);
now = new Date();
alert(now);
f_date = now.getDate()+" "+strMonth(now.getMonth())+" "+now.getFullYear()+" / "+timeFormat(now.getHours(), now.getMinutes());
return f_date;
}
<span class="foo"><script type="text/javascript">document.write(timeClock());</script></span>
преждение (в настоящее время); дает мне значение каждую секунду, но оно не обновляется в HTML. Как я могу обновить время на HTML без обновления страницы?