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 = “”‘, 5000);

The code above will redirect the page to “” after 5 seconds. It’s simple.

Leave a Reply

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