Answer the question
In order to leave comments, you need to log in
How to reload the page on time?
Hello. There is a script. And sometimes he "hangs". The page needs to be reloaded to run. Is it possible to somehow wrap this in a function, for example, tied to a timer, which would reload the page if, say, the code freezes for more than 30 seconds.?
The script is something like this:
(function (window, undefined) {
var w;
if (typeof unsafeWindow != undefined) {
w = unsafeWindow;
} else {
w = window;
}
if (w.self != w.top) {
return;
}
function start() { }
function check() { }
function get() { }
function e() { }
})(window);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question