Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SCRIPT LANGUAGE="JavaScript">
- function validate(){
- var username = document.getElementById("uname").value;
- var password = document.getElementById("pword").value;
- if ( username == "Stetson" && password == "123"){
- alert ("Login successfully");
- window.location = "home.html"; // Redirecting to other page.
- return false;
- }
- else{
- alert("Wrong username or password;");
- }
- }
Add Comment
Please, Sign In to add comment