javascript - Frames does not reload -


there 2 frames in web page. frames load same file (php). file has code:

settimeout("location.reload(true);",10000); 

on localhost works fine. online works too, sometimes, 1 frame stops reload , other reloads.

do think internet connection affect it? maybe else.

this why:

setinterval() - executes function, on , on again, @ specified time intervals

settimeout() - executes function, once, after waiting specified number of milliseconds

setinterval(test,1000);  function test(){  console.log("test"); } 

now test printed every 1000ms!

please use setinterval instead!


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -