Here's the code:
window.location.replace('http://thewebsiteurl');
How would I run this code after a 0.1 second delay?
-Thanks
Here's the code:
window.location.replace('http://thewebsiteurl');
How would I run this code after a 0.1 second delay?
-Thanks
use setTimeout
setTimeout(() => window.location.replace('http://thewebsiteurl'), 100) // in milli seconds