1.单纯的关闭window.opener.location.reload(); //刷新父窗口中的网页window.close();//关闭当前窗窗口2.提交后关闭 function save(){document.getElementById("pointsform").submit();alert('保存成功');window.opener.document.getElementById("cmd").value="query";window
//禁止刷新提示window.onbeforeunload = function() { var n = window.event.screenX - window.screenLeft; var b = n > document.documentElement.scrollWidth-20; if(b && window.event.clientY < 0 || window.event.altKey){ }else{ location.href=location.href;