formatc2013 formatc2013 - 5 months ago 36
HTML Question

how can I refresh something each sec?

I 'd writen something on the screen with setinterval(), and the results are queueing on the screen. I want to refresh it every seconds and have just one on the screen at a time. Any ideas?


Use an iframe or object to load a document,

<iframe src="seconder.html"></iframe>
<object data="seconder.html"></object>

which includes a meta refresh pragma:

<!doctype html>
    <!--One second meta refresh--> 
    <meta http-equiv="Refresh" content="1">