定时关闭Alert框--http://topic.csdn.net/t/20040413/15/2959933.html#
Posted on 2009-09-25 12:51 懒人ABC 阅读(622) 评论(0) 编辑 收藏 举报
<script language="JavaScript">
var aaa
function test()
{
aaa=if0.showModelessDialog("javascript:alert();window.close();","","status:no;resizable:no;help:no;dialogHeight:30px;dialogWidth:40px;");
setTimeout("if0.location.reload();",1000);
}
</script>
<iframe style="display:none" name=if0 ></iframe>
<input type="button" value="弹出alert框,一秒后自动关闭;" onClick="JavaScript:test()">
</form>
var aaa
function test()
{
aaa=if0.showModelessDialog("javascript:alert();window.close();","","status:no;resizable:no;help:no;dialogHeight:30px;dialogWidth:40px;");
setTimeout("if0.location.reload();",1000);
}
</script>
<iframe style="display:none" name=if0 ></iframe>
<input type="button" value="弹出alert框,一秒后自动关闭;" onClick="JavaScript:test()">
</form>