Automatic Redirect with Javascript

Im in d middle of a project which require auto redirect after submitting a form so i thought i just gonna share it how it works.


setTimeout(‘window.location = “http://luckyphq.com”‘, 5000);

The code above will redirect the page to “http://luckyphq.com” after 5 seconds. It’s simple.

Leave a Reply

Your email address will not be published. Required fields are marked *