This is my code, and I want to redirect to another site when clicking Submit, and I can't find where is the error. It's a simple code and I know it's a little "ugly" to see, but I'm only testing.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="paginaweb.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function redirect(){
window.location.href("https://www.outlook.com");
return(false);
}
</script>
</head>
<body class="container">
<div class="image"> </div>
<div>
<style>
input[type=text] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
}
</style>
<label for="email">
<p class="fuente">Introduce tu email para conectarte a Internet.</p></label>
<form onsubmit="redirect()">
<input type="email" placeholder="Your email...">
<input type="submit" id="submit" value="Submit">
</form>
</div>
</body>
</html>