js页面的弹框怎么关闭啊

JavaScript011

js页面的弹框怎么关闭啊,第1张

1、单纯的关闭

window.opener.location.reload()//刷新父窗口中的网页

window.close()//关闭当前窗窗口

2、提交后关闭

function save(){

document.getElementById("pointsform").submit()

alert('保存成功')

window.opener.document.getElementById("cmd").value="query"

window.opener.document.getElementById("form的id").submit()//提交

window.close()//关闭当前窗口

}

工具:

IE

设置方法如下:

打开IE,点击工具,选择Internet选项

点击安全标签,选择自定义级别 (把安全级别设置为中,或低)

在设置窗口中按下图所示,把下面两项设置为启用即可