您的位置:首页 > 其它

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

2006-05-22 16:34 281 查看
这是收集的同事说的:

打开: 

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();

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ie iframe border function null