Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4.         <meta charset="utf-8">
  5. </head>
  6. <body>
  7.         <p>Начало документа...</p>
  8.         <script>
  9.                 var user=prompt('Введите логин','');
  10.                 var passwordform;
  11.                 var writePas;
  12.                         if (user=='Черный властелин'){
  13.                                 password=confirm('Вводим пароль?');
  14.                                         if (password==false)
  15.                                                 alert('Вход отменен');
  16.                                         else  writePas=prompt('Пароль','');
  17.                                                 if (writePas=='Я пришел')
  18.                                                         alert('Пароль верен');
  19.                                                 else
  20.                                                         alert('Пароль не верен');
  21.                        
  22.                         }else
  23.                                 alert('Логин не верен');
  24.        
  25.        
  26.         </script>
  27.         <p>Конец документа</p>
  28. </body>
  29.        
  30. </html>