By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,567 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,567 IT Pros & Developers. It's quick & easy.

HTTP Referrer header

P: n/a
Hi all,

Is there a way to set the value of HTTP header Referrer to null or to
any specified value?? I have tried doing this

document.Referrer= null

but document.Referrer is a read only property therefore the value can't
be changed and a Javascript error is occuring. Any ideas on how this
can be achieved.

TIA

Jul 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Suman said the following on 7/16/2006 11:31 AM:
Hi all,

Is there a way to set the value of HTTP header Referrer to null or to
any specified value??
No, but why do you want to?
I have tried doing this

document.Referrer= null

but document.Referrer is a read only property therefore the value can't
be changed and a Javascript error is occuring. Any ideas on how this
can be achieved.
The actual property is document.referrer, note the case. But you can't
set it via JS. Why do you want to though?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.