I have a single url that I need to open it after a specific amount of time.
I think this can be done using js/jquery and I see it working like this: I open the page created with the js code inside and the url loads automatic in a new tab and after 5 minutes this same url is opened in a new tab or in the same tab that was previously opened.
It’s a trick I am working on and the problem is that I don’t know much in js/jquery that’s why I need your help.
You might ask me: Hey, this code will open a new tab each 5 minutes so you’ll have a lot of them running, are you sure you need this?.. and I say yes, that’s what I need, a new tab for a single url each 5 minutes.
Thanks.
You could use
setTimeout()which will wait a specified amount of time (ms) then execute the declared function.Example:
To repeat an action on a timer you can use
setInterval()