补充几点我当前的窗口有地址栏,要打开窗口的URL(也就是这个form的action)和当前窗口不同且不要地址栏,而且form里有很多数据,要传到新打开的窗口去

解决方案 »

  1.   

    为什么一定要用form的target
    只要能实现功能就行了呗
      

  2.   

    可以如下实现(关键是两个win)
    <body><form method="POST" name="form" action="22.htm" onsubmit="return sub(this)" target="win">
      <input type="submit" value="提交" name="B1">
    </form></body>
    <script>
    function sub(fbox)
    {
    window.open("about:blank","win","location=no");
    return true
    }
    </script>
      

  3.   

    不为什么意义,就是领导要这种效果...我原来在form的onsubmit里有form_check函数来检验输入的合法性,如果再加上打开窗口应该怎么写呢?