var usern = prompt("enter your User Name pleas!"); var passw = prompt("enter your password pleas!"); if ( usern == "admin" && passw == "123a"){ alert('Hello Dear Admin'); }else{ alert('your username or your password is worng'); }