我   用过了!在WIN2000中浏览器的后退好用!可是在WIN XP里就不好用了!以下是我写的代码!请帮我解决一下谢谢!!!!我写在<body>  </body>里
<script LANGUAGE="JavaScript">
<!--
function goHist(a) 
{ history.go(a); 
}-->
</script>
 <input TYPE="button" VALUE="后退" onClick="goHist">

解决方案 »

  1.   

    history里面有内容吗?<script>
    alert(window.history.length)
    </script>你写的不对啊.<script LANGUAGE="JavaScript">
    <!--
    function goHist(a) 
    {
     history.go(a); 
    }
    -->
    </script>
     <input TYPE="button" VALUE="后退" onClick="goHist(-1)">
      

  2.   

    不好意思我写的和你一样在  后面的onclick=("goHist(-1)")我已经写了在上面没写!不好意思!
    <script>
    alert(window.history.length)
    </script>
    上面的话没什么用啊!还有方法解决吗 !