ShowModal窗口最大化

showModalDialog和showModelessDialog中submit时不弹出新窗口

步骤如下:
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>
posted @ 2008-10-28 12:53  shuang  阅读(590)  评论(0)    收藏  举报