document.listForm1.target = "_top";
去掉

解决方案 »

  1.   

    <iframe name="cmd" id="cmd" width="0" height="0"></iframe>
                 ^^^^^
    <form name="loginform" method="post" action="login.asp" target="cmd">
                                                                   ^^^^^
    注意,Iframe的Name, 和 Form 的 Target 一致就好~
      

  2.   

    document.listForm1.target = "";就可以了
      

  3.   

    document.listForm1.target = "_top";
    改成
    document.listForm1.target = "_self";