Jun-28-2018, 11:53 PM
Look if this is what you want...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Redirect Test</title> </head> <body> <form action="/" method="POST"> First name:<br> <input type="text" name="firstname"><br> Last name:<br> <input type="text" name="lastname"> <br> <input type="submit" value="Submit" onclick="redirect()"> </form> <script> var redirect = function() { setTimeout(function(){ window.location.href = 'http://www.google.com/'; }, 1); }; </script> </body> </html>