步骤如下:
1.在showModalDialog
的那个页面添加
<base target="_self"/>
2.设置form的属性target为""
示列:
//-------------------------------------------------------
try0.html
打开一个Modal Dialog:
<input onclick="window.showModalDialog
('try1.html',null,'dialogWidth:200px;dialogHeight:150px;status:no;help:no;')"
type="button" value="showModalDialog
"
/>
try.html
需要提交表单的页面
<base target=_self>
<form action="try1.html" method="get" tagert="">
??? <input type="submit" value="submit">
</form>
=============================================方法2
window.name = "mywindow";
window.document.forms[0].submit();
<html:form action="/Action" method="post" target="mywindow">
<html:form>