<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>
<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>