<!DOCTYPE html>
<html lang="ru">
<head>
  <meta charset="UTF-8">
  <title>prompt() с кастомным окном — prompt() — Дока</title>
  <style>
    #dialog-overlay {
        display: none;
        opacity: 0.25;
        position: fixed;
        top: 0px;
        left: 0px;
        background: #000;
        width: 100%;
        z-index: 100;
    }
    #dialog-box {
        display: none;
        position: fixed;
        background: #FFF;
        width: 550px;
        z-index: 101;
        -we