form 元素有个action属性
这样试试:<FORM ACTION="http://example.microsoft.com/sample.html" METHOD="POST">

解决方案 »

  1.   

    这样是提交到左面的页面上来的,我的目的是左边的页面不动,或者刷下新,想把action的内容在右面的right frame中显示,改如何做呢?
      

  2.   

    <FORM target="右边框架的name属性值" action="提交到的页面"
      

  3.   

    这样写的话,frame的右面之jsp在新的页面跑出来了,而不是在frame的右面显示出来,要求是在右面显示,而不是新弹出一个窗口,该如何弄呢?
      

  4.   

    怎么可能弹出新窗口,你target没设置对吧??index.htm
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test</title>
    </head>
      <frameset rows="*" cols="195,*" border="0" framespacing="0" frameborder="NO">
        <frame src="left.htm" name="leftFrame" scrolling="auto">
        <frame src="right.htm" name="rightFrame">
      </frameset>left.htm,要设置表单的target为右边框架的name属性的值
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title></title>
    </head>
    <body>
    <form method='get' action='right.htm' target="rightFrame"><!----设置target为右边框架的name---->
    <input type='text' name='par' value='parvalue'/>
    <input type="submit" value="提交到右框架" />
    </form>
    </body>
    </html>
    right.htm,就简单的输出查询参数而已
    <script>
    document.write("Get参数串:"+location.search);
    </script>