Javascript : Url Redirection after form submission

I have the following newsletter Mailchimp form:

<div class="mc4wp-form-fields"><p>
        <input type="email" name="EMAIL" placeholder="" required="">

    <input type="submit" value="Subscribe">

I need when someone clicks on the subscribe button, after 2 seconds to redirect in a new URL in a new tab. For example

How is this possible to happen using javascript?


Change your button with following code, then put myFunction() function code in your file.

<input id="button" type="submit" name="button" onclick="myFunction();" value="Subscribe"/>

function myFunction(){
    setTimeout(function () { window.location = "" }, 2000);