Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var userName = prompt('Введите имя', '');
- if (userName == 'Admin'){
- var pass = prompt('Введите пароль', '');
- if (pass == 'Parol'){
- alert('Вы успешно вошли в систему');
- else if (pass == null){
- alert('Пароль не верный');
- else {
- alert('Пароль не верный');
- }
- else if (userName == null){
- alert('Не верное имя');
- }
- else {
- alert('Не верное имя');
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement