Some pages on my site and I would like to put javascript so that the user navigates for 5 minutes from one quick page to another, he will always be directed to another page.
is it possible for me to do this in java that leads to another page?
Grateful!
CodePudding user response:
You can use setInterval as below
setInterval(() => {
// logic for redirect
}, 1000 *60 *5);
CodePudding user response:
maybe you can use window.location.href
to redirect another page:
setInterval(() => {
window.location.href = 'your url';
}, 1000 *60 *5);