Hi I have a requirement to refresh the page for every two seconds i am using below code for it .
function timedRefresh(timeoutPeriod) {
setTimeout(function () {
location.reload(true);
}, timeoutPeriod);
}
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 14, 2019, 6:44 PM EST
Mark TaborRank #914 · 2.3K reputationPosted Dec 14, 2019, 6:53 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 14, 2019, 7:10 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 14, 2019, 7:18 PM EST
Mark TaborRank #914 · 2.3K reputationPosted Dec 14, 2019, 8:10 PM EST