<form> <input type="text" name="mail" placeholder="Enter you username" required/><br> <button class="button" type="submit" onclick="window.location.href='link.html'">Continue</button> </form> as you can see in this code i'm using input type button and button what i want is before redirecting me to link.html i want the input text to be required its redirecting me without checking the type text any solution i think the button doesn't do this but i need it to redirecting me the link.html
<form action="link.html"> <input type="text" name="mail" placeholder="Enter you username" required/><br /> <input type="submit" class="button" value="Continue" /> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)