This is my first time messing with the document.referrer tag in javaScript, and I'm afraid it's giving me some trouble. It all seems very simple and I'm having no problem getting the other document methods to work, but this one just refuses to get in line. Here's my test code:
<HTML>
<HEAD>
<title>refer test</title>
</HEAD>
<BODY>
<P>
<script LANGUAGE=JAVASCRIPT
TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
document.write('<P>Here\'s the URL: ' + document.URL);
document.write('<P>Here\'s the last modified info : ' + document.lastModified);
document.write('<P>Here\'s the referrer: ' + document.referrer);
//-- Stop hiding script -->
</SCRIPT>
</body>
</HTML>
The document.URL and document.lastModified work fine, but referrer never shows up. Can anyone tell me what I'm doing wrong here?
Thanks,
Alex
<HTML>
<HEAD>
<title>refer test</title>
</HEAD>
<BODY>
<P>
<script LANGUAGE=JAVASCRIPT
TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
document.write('<P>Here\'s the URL: ' + document.URL);
document.write('<P>Here\'s the last modified info : ' + document.lastModified);
document.write('<P>Here\'s the referrer: ' + document.referrer);
//-- Stop hiding script -->
</SCRIPT>
</body>
</HTML>
The document.URL and document.lastModified work fine, but referrer never shows up. Can anyone tell me what I'm doing wrong here?
Thanks,
Alex