Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP_REFERER with window.open()

Status
Not open for further replies.

davewelsh

Programmer
Jun 26, 2001
71
CA
I have a popup window working great with javascript window.open(). In the popup, I want to know where the user came from via the HTTP_REFERER header. It seems that Netscape 4 and 7 will send the header, but unfortunately IE 6 won't.

I've tried both
Code:
<a href=&quot;javascript: window.open('...
and
Code:
<img onclick=&quot;window.open('...

Both methods will send the HTTP_REFERER in NN7. The second method won't do anything in NN4 (when I tried it). Both methods send an empty HTTP_REFERER with IE 6.

This is either a bug or a &quot;feature&quot; of IE, so I want to know if there is a way to force sending the header. I could put this in a function with the window.open and they would be called together.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top