Как регулярно обновлять время?Jquery

Программирование на jquery
Anonymous
Как регулярно обновлять время?

Сообщение Anonymous »

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;
}

document.write(timeClock());
< /code>

alert (сейчас); дает мне значение каждую секунду, но оно не обновляется в HTML. Как я могу обновить время на HTML без обновления страницы?

Подробнее здесь: https://stackoverflow.com/questions/509 ... -regularly

Вернуться в «Jquery»