Check Javascript Condition Every Frame -



Check Javascript Condition Every Frame -

pretty much, question simple, , did search similar question before posting this. know how create javascript code repeatedly execute while page open, rather code running 1 time , beingness done or responding event handlers. pretty much want javascript equivilant of:

$(document).ready(function() { });

but not want utilize jquery because less efficient. want check === status every single frame.

use setinterval .. within window.onload function

window.onload = function() { function test() { alert("test"); } setinterval(test, time_miliseconds);

}

javascript

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -