July 1998
Intermediate to advanced
1456 pages
65h 5m
English
referrer — NN 2 IE 3 DOM 1
Read-only
Returns a string of the URL of the page from which the current page
was accessed, provided the original page had a link to the current
page. Many server logs capture this information as well. Scripts can
see whether the visitor reached the current document from specific
origins and perhaps present slightly different content on the page
accordingly. If the visitor arrived by another method, such as typing
the document URL into a browser dialog or by selecting a bookmark,
the referrer property returns an empty string.
if (document.referrer) {
document.write("<P>Thanks for following the link to our web site.</P>")
}String.
None.
Read now
Unlock full access