alert 怎么自动关闭?

shart 2003-05-27 04:12:07
如题,望高手做答
...全文
101 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhaoweiwei 2003-05-27
  • 打赏
  • 举报
回复
好像是不可以自己关闭!自己做个窗口
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script>
function close_win()
{
new_window=window.open("www.sina.com","height=200,width=200")
setTimeout(new_window.close,2000)

}


</script>
</head>

<body>
<input type="button" name="b1" onClick="close_win()">
</body>

</html>
nhconch 2003-05-27
  • 打赏
  • 举报
回复
不可以,自己做个窗来提示吧

87,922

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧