Find jobs - Medios de comunicación - Debt Consolidation - Debt Consolidation - Submit article

PDA

View Full Version : How to pass HTTP_REFERER using javascript ?


vic_msn
Dec 19th 2008, 9:53 am
I am doing a javascript redirect to one of my partner site.
Inside page1.html I have

location.href = 'http://www.myfriendsite.com';


Whenever some one clicks the link page1.html from www.mysite.com
page1.html shows as referer while using FireFox

When using Internet Explorer www.mysite.com itself shows as the referer.

what code should I be using in page1.html so that it(page1.html) shows as the
referer in both the browsers.

MMJ
Dec 20th 2008, 11:42 am
Use windows.navigate on IE (its an IE only function). This should set the referer.

edit; nvm, it won't send the referrer (just tested).

Your only option is to create an anchor and "click" it with javascript.

Google says: http://www.velocityreviews.com/forums/showpost.php?p=3656000&postcount=8