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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netscape problem

Status
Not open for further replies.

steam

ISP
Jul 17, 2000
51
0
0
IT
Hello

------perl code--------
$ref="$ENV{'HTTP_REFERER'}";
print qq(
document.write('hello:$ref');
-----------------------
called with:

<script language=&quot;JavaScript&quot; src=&quot;any.cgi&quot;></script>

It works with IE but Netscape prints only
-------
hello:
-------
It does not send the referer!
:(
Ideas?
 
It could be because of the language=&quot;JavaScript&quot; statement...since it isn't javascript. I'm not really sure.
Here's the code to do the same thing with javascript, that's about all the help I can be:
Code:
<html>
<head>
<script language=&quot;javascript&quot;>
ref = document.referrer
document.write(&quot;hello:&quot; + ref)
</script>
</head>
<body>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top