<td height="31" width="265"><a href="#" onclick="window.open('dep_add.jsp?dep_name=?????','','width=300,height=150')">新增</a></td>

解决方案 »

  1.   

    dep_name=?????这个就是要传过去的参数,在A页面里面有一个同名的文本筐。
      

  2.   

    不好意思多按了一下回车见:
    <input type = text id= t1>
    <td height="31" width="265"><a href="#" onclick="sub()">新增</a></td>
    <script>
    function sub()
    {
      aa = t1.value;
      str = "dep_add.jsp?dep_name="+aa;
      window.open(str,'','width=300,height=150);
    }
      

  3.   

    将文本筐所在的Form的ID确定,如Form1,设定好post和get方式,然后在连接的onclick="javascript:Form1.submit();"即可将文本筐的value值传递到Form的Action所指向的页面.我就是用这个方法刷新多个框架页面的.
      

  4.   

    对象不支持此属性或方法<form name="form1" method="post" action="">
      <table width="384" height="27" align="center">
        <tr> 
          <td height="31" width="107"><b><font color="#990000">组织名称:</font></b></td>
          <td height="31" width="265"> 
            <input type="text" name="org_name" size="30">
          </td>
        </tr>
        <tr> 
          <td height="31" width="107"> <b><font color="#990000">新增部门:</font></b></td>
          <td height="31" width="265"><a href="#" onclick="javascript:form1.submit();">新增</a></td>
        </tr>
        <tr> 
          <td height="24" width="107">&nbsp;</td>
          <td height="24" width="265"> 
            <input type="submit" name="submit" value="提交">
            <input type="reset" name="Submit2" value="重置">
          </td>
        </tr>
      </table>
    </form>