ie中属性编辑使用模态窗体

来源:互联网 发布:黑界扣字软件最快的 编辑:程序博客网 时间:2024/05/09 02:10

这是收集的同事说的:

打开: 

var rv = window.showModalDialog("xxxxxxx.do?.......","dialogWidth=800px;dialogHeight=750px;help:no;status:no;scroll:no");

提交到一个frame中,这样不会弹出新窗口

<iframe name="tmpPage" border="0" height="0" width="0">
</iframe>

document.singleTaskEditForm.target="tmpPage";

转向到a.jsp,关闭模态窗体

function document.body.onload(){
 window.returnValue="ok";
 window.close();
}

在打开模态窗体处,捕捉returnValue,并刷新当前form

 if(rv!=null)
 window.location.reload();

 

原创粉丝点击