...

View Full Version : Referer in IE



arabab
09-19-2007, 10:13 PM
Hello people, one quick question. I use the following code on one of my pages:

<body bgcolor="#000000" scroll="auto" onclick="window.location='http://website.com/'">

The referer is sent in FF but not in IE. What am I doing wrong?:confused:

Thank you.

By the way, I refuse to get the referer in a form and submit it using javascript. There must be a better way to fix this problem (like boycotting MS - lol).

_Aerospace_Eng_
09-19-2007, 10:59 PM
<body style="background-color:#000;" onclick="window.location.replace='http://website.com/'">

arabab
09-19-2007, 11:21 PM
<body style="background-color:#000;" onclick="window.location.replace='http://website.com/'">

Doesn't work.:(

_Aerospace_Eng_
09-19-2007, 11:25 PM
Then you likely have something blocking the referrers in IE.

arabab
09-20-2007, 11:47 AM
Then you likely have something blocking the referrers in IE.

Sorry. Perhaps I was not clear. What I meant was that the link doesn't work at all. In other words, nothing happens when I click on the page (I am not redirected to http://website.com).

_Aerospace_Eng_
09-20-2007, 03:38 PM
Oh sorry. Try this instead

onclick="window.location.replace('http://website.com')"

arabab
09-21-2007, 03:04 AM
Oh sorry. Try this instead

onclick="window.location.replace('http://website.com')"

It still doesn't report the referer in IE. But thanks for the help anyways.:)

_Aerospace_Eng_
09-21-2007, 03:27 AM
Do you have any type of security software, zone alarm perhaps?

felgall
09-21-2007, 04:02 AM
Is the page the code is on a secure page (using https:// ) - if so then IE doesn't ever pass the referrer to non secure pages called from there.

Most browsers and firewalls make it easy to turn off the referrer field and many people do so to help protect their privacy. The field should therefore not be reliied on for anything as more and more often it will be blank.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum