JavaScript 计时器 【每日一段代码72】

<html>

<head>

<script type="text/javascript">

function timeMsg()

{

var t=setTimeout("alert('5 秒!')",5000);

}

</script>

</head>

<body>

<form>

<input type="button" value="点击显示时间弹出框" onclick="timeMsg()" />

</form>

<body>

</html>

posted on 2012-04-07 21:29  Cosimo  阅读(171)  评论(0编辑  收藏  举报

导航