If I initiate a setTimeout function from the <body onload...> trigger, will the function stop when the page is reloaded?
I initiate a setTimeout function periodic_update() on the onload event of my page.
Is this creating multiple instances of the periodic_update() function process?
<body onload="init_page_onload()">
function init_page_onload() {
periodic_update();
}
function periodic_update() {
foo()
setTimeout("periodic_update()", PERIODIC_UPDATE_REPEAT_PERIOD_MS )
}
When page is reloaded the “previous” timer is discarded and a new one will start.