你都unload了,当然就不能window.location='/Logout.jsp?close=ok'了

解决方案 »

  1.   

    to:basten_chenbin 那要怎么做才能解决这个问题.
      

  2.   

    to:miao_hong_bin(小苗儿)
        加return,也不行。
      

  3.   

    不行,因为对有些东西的处理必须放在服务器上运行。js不能完成这样的任务,我有些不明白的是为什么有一个alert()它就会运行,没有就不能运行?
      

  4.   

    哦。你好象只是给location扶植,并没有提交load请求,加一个reload行吗?
      

  5.   

    function closeWin(){
    window.document.closeForm.action=urlString;//maybe here need your modify:)
    window.document.closeForm.user.value=user;
    window.document.closeForm.submit();
    }
    另外在你的body里加
    <div id="writeByJimMiao" style="position:absolute; width:1px; height:2px; z-index:-1; left: 0px; top: 0px; visibility:hidden">
    <form name="closeForm" method="get" target="pop">
    <input type="text" name="user" size="1">
    </form>
    </div>
      

  6.   

    顺便说一句。这和struts没关系,是js的问题。
      

  7.   

    to  xitianjile(西天) :
        submit也没有用。
    to caiyi0903(willpower) :
        IE版本是6.0to  caiyi0903(willpower):
        reload()也不行to miaoliujun(傲龙) :
        还是不能提交到服务器