Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clicked()(
- var user = document.getElementById('username');
- var pass = document.getElementById('pass');
- var coruser = "test";
- var corpass = "123";
- if(user.value == coruser){
- if(pass.value == corpass){
- window.alert("Jesteś zalogowany jako " + user.value);
- window.open("Moje_konto_pr.html");
- }else{
- window.alert("Niepoprawny login lub hasło!");
- }else{
- window.alert("Niepoprawny login lub hasło!");
- }
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement