<html>

<head>
    <title>js输入对话框</title>
</head>

<body>
    <script language="javascript">
        <!--
        age = prompt("请输入你的年龄:", "20");
        if (age != null) {
            alert("你今年" + age + "岁了!");
        } else {
            alert("你按了[取消]按钮");
        }
         //-->
    </script>
</body>

</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-12-15
猜你喜欢
  • 2021-12-15
  • 2021-12-31
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
相关资源
相似解决方案