I've this form:
<form id="form1" name="form1" method="post" action="http://gmail.com"
onsubmit="setTimeout(function () { window.location.reload(); }, 10)">
<div class="form-group">
<label for="email">E-mailadres</label>
<input type="email" name="email" class="form-control" id="email">
</div>
<input type="submit" value="verzenden" class="btn btn- primary" />
</form>
I want that if someone clicks on the button, he/she will redirect to gmail.com I try target blank, but it doesn't work, does someone know a good manner to redirect with javascript or php?
EDIT: I want that if someone hit the button he/she will redirect to a new tab.