<form name="aaa" action="xxx.asp" target="_self">

解决方案 »

  1.   

    target="_self"不是默认设置么?我添加了也没用,还是弹出新窗口.
      

  2.   

    iframe or frameset
    <script>
    showModalDialog("about:<iframe width=100% height=100% src='about:<a href=.>test</a>'>")
    </script>
      

  3.   

    当然可以:
    在IE5.5以下的版本用frameset
    以上用frameset或iframe都可以;
    例子:
    http://www.csdn.net/Expert/TopicView.asp?id=781508
      

  4.   

    很簡單的
    將原先要顯示在對話框的頁面放井一個框架頁面,然後用對話框打開
    這個框架頁面即可,注意在<form...>中不要指定target
    例:
    a.html
    .....
     var feaustr="dialogWidth:500px;dialogHeight:320px;center:yes;resizable:no;scroll:no;status:no";
    var ks=window.showModalDialog("b.asp","",feaustr);
    .....b.asp
    ....
    <Frameset ...>
    <frame ... src="c.asp">
    </Frameset>c.asp就是你以前直接在模式對話框中打開的拉個頁面
      

  5.   

    在模式对话框里:
    <form target=meizz>....</from>在主页面里写上:
    <iframe name=meizz width=0 height=0 frameborder=0 style="display: none"></iframe>这样提交就不会有新的页面产生了。
      

  6.   

    解决模态窗口中提交弹出新窗口的问题:
    当然可以:
    在IE5.5以下的版本用frameset
    IE5.5以上用frameset或iframe都可以;
    例子:
    http://www.csdn.net/Expert/TopicView.asp?id=781508
      

  7.   

    to 楼上
    还是没看到你的提交(submit在哪儿)
      

  8.   

    sorry贴子过期了.

    lifeiqhp(飞哥) 说的