Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript and previous web page address

Status
Not open for further replies.

SuperCyber

Programmer
Aug 10, 2001
35
US
Is there a way to find out the name of the web page that the user just came from? I have a little script I am writing and I need to make sure the user came from a certain page. Thanks in advance for any help.

Brian
 
Client-side: Unfortunately, no.
Server-side: Yes!

Use the ServerVariables collection of the Request object. Named item "HTTP_REFERER" (ie, Request.ServerVariables("HTTP_REFERER") )
 
>>Client-side: Unfortunately, no.

why not?

document.referrer Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top