document.referrer..

  • Thread starter Frances Del Rio
  • Start date
F

Frances Del Rio

if I put alert(document.referrer) in code of a file that was linked from
another it returns blank... pls, need to get document.referrer, don't
why it's not working... read up on oreilly, don't know what I'm doing
wrong.. thank you.. Frances
 
M

McKirahan

Frances Del Rio said:
if I put alert(document.referrer) in code of a file that was linked from
another it returns blank... pls, need to get document.referrer, don't
why it's not working... read up on oreilly, don't know what I'm doing
wrong.. thank you.. Frances

Try "referer".

Also, it may be blocked by many firewalls.
 
K

kaeli

[email protected] enlightened us said:
if I put alert(document.referrer) in code of a file that was linked from
another it returns blank... pls, need to get document.referrer, don't
why it's not working... read up on oreilly, don't know what I'm doing
wrong.. thank you.. Frances

Referer is spelled (incorrectly, but that's a long story):
document.referer

Note that is should NEVER be relied upon. It is not accurate and can easily
be spoofed. I spoof it all the time to get into stuff. ;)

--
--
~kaeli~
Not one shred of evidence supports the notion that life is
serious.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
F

Frances Del Rio

McKirahan said:
Try "referer".

Also, it may be blocked by many firewalls.

thank you.. I did try "referer", it returns "undefined".. don't know
about the firewall thing since here at work we use referrer checking
w/asp and it works.. needed to do client-side.. but found another
solution for what I needed to do.. however, still would like to know
why this thing isn't working b/c sooner or later will need to use
client-side again.. thank you again.. Frances
 
R

Randy Webb

Frances said:
if I put alert(document.referrer) in code of a file that was linked from
another it returns blank... pls, need to get document.referrer, don't
why it's not working... read up on oreilly, don't know what I'm doing
wrong.. thank you.. Frances

SWAG: You are testing it in IE offline. IE does not report the referrer
property when testing a page offline.
 
F

Frances Del Rio

Randy said:
SWAG: You are testing it in IE offline. IE does not report the referrer
property when testing a page offline.

this is interesting.. had no idea and hadn't thought of that... I WAS
testing locally, and I need it for a CD.. referrer URL would be locally
from same CD.. oh well.. many thanks to all for your responses... Frances
 
M

Matthew Lock

Some virus checker/security/privacy software packages like some
versions of Norton completely block the browser sending the referrer
too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top