Advertisement
Guest User

ds

a guest
Jun 8th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var attempt = 3; function validate(){var username = document.getElementById("username").value;var password = document.getElementById("password").value;if ( username == "Formget" && password == "formget#123"){alert ("Login successfully");window.location = "success.html"; return false;}else{attempt --;alert("You have left "+attempt+" attempt;");if( attempt == 0){document.getElementById("username").disabled = true;document.getElementById("password").disabled = true;document.getElementById("submit").disabled = true;return false;}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement