js alert() 方法

2021-10-08 11:36 网页模板
<html>
<head>
<script type="text/javascript">
function display_alert()
  {
  alert("I am an alert box!!")
  }
</script>
</head>
<body>

<input type="button" onclick="display_alert()"
value="Display alert box" />

</body>
</html>
上一篇:document.querySelector()方法和document.querySelectorAll方法
下一篇:js获取页面description的方法

猜你喜欢

手机扫一扫添加微信

153-7456-7400