function aReload(where) { window.location.href = where; } function startReload(where) { setTimeout('aReload(where)', 5000); }
a w HTML'u wywołuję to tak:
startReload(index.php)
Ale nic z tego nie wychodzi, szukałem na forum ale nie znalazłem.
function aReload(where) { window.location.href = where; } function startReload(where) { setTimeout('aReload(where)', 5000); }
startReload(index.php)