Try this
if (email.test(mail))
{
window.location.href = 'URL to redirect';
}
else
{
alert("Enter a valid email");
this.focus();
}
or
if (email.test(mail.value))
{
window.location = 'Default.aspx';
}
else
{
alert("Enter a valid email");
this.focus();
}
Good Luck