Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validate(){
- var username = document.getElementById("username").value;
- var password = document.getElementById("password").value;
- if ( username == "admin" && password == "admin"){
- window.location.href= "operatore.html"; // Redirecting to other page.
- return false;
- }
- else{
- alert("Username/Password errati");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement