Created
February 21, 2021 07:46
-
-
Save bitfishxyz/3a99b0ab5b6a47183efbd34d6607df59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<form> | |
Username: <input type="text" name="username" /> | |
Password:<input type="text" name="password" /> | |
Email:<input type="text" name="email" /> | |
<button>submit</button> | |
</form> | |
<script> | |
let form = document.getElementsByTagName("form")[0]; | |
form.onsubmit = function() { | |
// check all rules | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment