Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layer/DIV

Status
Not open for further replies.

tinkler

Programmer
Aug 19, 2003
8
US
How can I refresh the content of a LAYER/DIV say every 5 seconds???
 
<script>
var i = 1;
setTimeout('fncSetDivFunction();',1000);
function fncSetDivFunction() {
i++;
document.getElementById('mydiv').innerHTML = i;
setTimeout('fncSetDivFunction();',1000);
}

</script>
<div id=mydiv></div>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top