the browser WILL NOT let you know what sites your clients had visited by script.

解决方案 »

  1.   

    This property returns a value only when the user reaches the current page through a link from the previous page. Otherwise, document.referrer returns an empty string; it also returns an empty string when the link is from a secure site.For example, if PageA.htm includes a link to PageB.htm, and the user clicks that link, the document.referrer on PageB.htm returns "PageA.htm". However, if the user is on PageA.htm and types PageB.htm into the address line or uses Open in the File menu to get to PageB.htm, the document.referrer returns an empty string.
      

  2.   

    asp:
    上一页的地址: <%=request.servervariables("HTTP_REFERER")%>
      

  3.   

    到下一页之前先把当前 url 写入 cookie 或 location.search.
    这样到了下一页, 自然就知道后退的地址了. ^_^要想直接获得, 目前js还办不到. 或者你找比盖子聊聊?...