Advertisement
gasaichan

problem-1

Dec 19th, 2019
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7.     <title>Document</title>
  8.     <style>
  9.       a {
  10.         display: block;
  11.       }
  12.     </style>
  13.   </head>
  14.   <body>
  15.     <script>
  16.       let fileName,
  17.         count = 0;
  18.       while ((fileName = prompt("Введите имя файла:")) != 0) {
  19.         document.writeln(
  20.           `<a href="${document.location}/${fileName}">${document.location}/${fileName}</a>`
  21.         );
  22.         count++;
  23.       }
  24.       document.write(`<p>Всего файлов: ${count}</p>`);
  25.     </script>
  26.   </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement