Untitled
unknown
plain_text
8 days ago
1.2 kB
6
Indexable
<!DOCTYPE html> <html> <head> <title>Start Page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script> function validform() { var uname = document.getElementById("uname"); var pss = document.getElementById("pss"); var expression = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/; if (!expression.test(pss.value)) { alert("Password does not match the requirement"); return false; } return true; } </script> </head> <body> <h1> login </h1> <form action="logincheck.jsp" method="post" onsubmit="return validform()"> User Name:<input type ="text" name="uname" id="uname" > <br> Password:<input type="password" name="pss" id="pss"> <br> <input type="submit" value="login" name="submit" id="submit"> <br> </form> </body> </html>
Editor is loading...
Leave a Comment