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

document.referrer in NS6?

Status
Not open for further replies.

sundemon

Programmer
Aug 11, 2001
125
Hello,
I have noticed that the document.referrer doesn't seem to work in NS6.1.

I have set up two pages that link to each other, and write the property:

"first document.html"...

<html>
<head>
<title>first document.html
</title>
<script language = &quot;javascript&quot;>
var x =document.referrer
alert(x);
</script>
</head>
<body>
<a href=&quot;second document.html&quot;>LINK</a>
</body>
</html>

and &quot;second document.html&quot;...

<html>
<head>
<title>second document.html
</title>
<style type=&quot;text/css&quot;>
</style>
<script language = &quot;javascript&quot;>
var x =document.referrer
alert(x);
</script>
</head>
<body>
<a href=&quot;first document.html&quot;>LINK</a>
</body>
</html>


This produces the expected results in IE5 and NS4.75, but returna an empty string in NS6.1. It says i works in the documentation, is there a new syntax for their DOM?
Also, in my actual application, it has to work across frames. Is that a factor I have to deal with as well?
Any help is appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top