Home jquery Reboot and redirect on jQuery

Reboot and redirect on jQuery




How can I reboot and redirect with a timer?

Answer 1, Authority 100%

every five seconds will be rebooting the page:

settimeout (function () {
   document.location.href = document.location;
}, 5000);

for redirect – specify the address:

settimeout (function () {
   document.location.href = 'http://hashcode.ru/';
}, 5000);

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions