为什么<A href=a.action target="b "><input type="buton" value="确定"/><A>在firefox中行却在ie中不行,能有解决的办法吗

解决方案 »

  1.   


    <script>
    function test()
    {
    window.location.target = "b";
    window.location.href = "a.action";
    }
    </script>
    <input type="button" value="确定" onclick="test()"/>
      

  2.   

    <A href=a.action target="b ">??a.action 是啥啊?直接加上跳转的页面就可以!
      

  3.   

    target = "b";
    不起作用啊~~~
      

  4.   

    在a.action怎么获得 <input type="text" value="name">中name的值
      

  5.   

    <script>
    function test()
    {
    var name = document.getElementById("name").value;
    window.location.target = "b";
    window.location.href = "a.action?name="+name;
    }
    </script>
    <input type="text" id="name" name="name"/>
    <input type="button" value="确定" onclick="test()"/>
      

  6.   

    这样就可以在a.action里用request.getParamenter("name");来获取了
      

  7.   

    但是在Action中接受到的是???号(乱码)
      

  8.   

     href=a.action target="b"  这儿有错   
      

  9.   

    乱码,看你用的服务器是什么?如果是tomcat,如果是get方法提交,那可以在server.xml中找到connector节点,加一个属性,URIEncoding=gbk就可以统一解决。
      

  10.   

    为什么要这样子用?<A href=a.action target="b ">确定<A>