<html>
<head>
<script type="text/javascript">
function timedMsg()
{
var t=setTimeout("alert('5 秒!')",1000)
}
</script>
</head>

<body>
<form>
<input type="button" value="显示定时的警告框" onClick = "timedMsg()">
</form>
<p>请点击上面的按钮。警告框会在 1 秒后显示。</p>
</body>

</html>

相关文章:

  • 2021-12-18
  • 2021-12-04
  • 2022-12-23
  • 2021-09-17
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案