how to get the privous URL of the browser using javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shyamjumberi@gmail.com

    how to get the privous URL of the browser using javascript

    Hi,

    I am developing web application.usi ng struts .I want the
    javascript code for getting the previous URL of the browser.
    any body help me.
  • Mike Duffy

    #2
    Re: how to get the privous URL of the browser using javascript

    shyamjumberi@gm ail.com wrote in news:eba47e8a-cac8-4215-9728-
    6b8e1ab67c6b@r1 5g2000prd.googl egroups.com:
    Hi,
    >
    I am developing web application.usi ng struts .I want the
    javascript code for getting the previous URL of the browser.
    any body help me.
    >
    Do you want "document.refer rer"? That is the link that referred to the
    current document, i.e. where we came from.

    If the urls are being typed in directly (i.e. the user is not following
    links), then there is no way to know. You can direct the browser back to
    previous URLs using "window.history ", but you cannot know what they are.

    Comment

    Working...