<script type=text/javascript>
window.location="delete.jsp?id=adsf&sdf=safasdf";
</script>不信把这段代码在ie里运行一下,地址栏中只有delete.jsp,后面的参数都丢失了。

解决方案 »

  1.   

    window.location.href="delete.jsp?id=adsf&sdf=safasdf";
      

  2.   

    chinastorm仁兄,我运行了一下还是不行,地址栏中只有delete.jsp,我是ie6,这个代码在ff中是没有问题的,但ie6中不行。
      

  3.   

    Noname2.html<html>
    <head>
    <title>
    </title>
    </head>
    <body><form action="hh" method="post" name="ABCA">
    <input name="a" value="sdfsdfsdf">
    <input name="b" value="dfgdfg">

    <script type=text/javascript>
    window.location="Noname1.html?id=adsf";
    </script>
    </form>
    </body>
    </html>Noname1.html<html>
    <head>
    <title>
    </title>
    </head>
    <body><form action="hh" method="post" name="ABCA">
    <input name="a" value="sdfsdfsdf">
    <input name="b" value="dfgdfg"></form>
    </body>
    </html>2个文件放一个目录下,如果Noname1.html不存在,后面没参数,如果存在,后面有参数
      

  4.   

    使用 document.location 试试看