Is this possible using jQuery/PHP? I am looking to have my webpage automatically go to a different web page at a certain time of day. For example, i have a ‘breakfast’ page that is supposed to auto-redirect to the ‘Lunch’ (www.mylunchpage.com) page at noon. Then the lunch page go to ‘Dinner’ (www.mydinnerpage.com) page at 5pm. I want it all based on time of day on not on a timer.
Yes, the browser will be open all day…
Any idea on how to make this work? Any advise will be greatly appreciated.
The Javascript function
setInterval()can be used to check at certain intervals (every minute, every 5 minutes, etc.) to see what time it is. If the current time hits one of your targets, you redirect.Something like: