这个方法,没用过。
也没看到有人用,至于能不能我也很难说。-------------个性签名--------------
http://www.esoftnow.com/bbs
欢迎光临!

解决方案 »

  1.   

    window.history.length表示的是:
    Retrieves the number of elements in the History list. history没有collections属性
    也就是不能向window.history[0]这样取数值
      

  2.   

    微软的解释:
    For security reasons, the history object does not expose the actual URLs in the browser history. 
      

  3.   

    你可以用history.back()的。 history.go(1)也可以达到你的效果。不过你要判断length,不能越界。
      

  4.   

    history 只能取到长度值,里面具体的地址是取不到的,要取上一面地址,脚本里用:
    document.referrer