T
Trev
Hi all,
I'm trying to create some javascript that will provide the user of the
referring page, but if I do something like the following:
<HTML>
<HEAD>
</HEAD>
<BODY>
<script>
<!--
url= document.referrer;
document.write('<A HREF="' + url + '">This Link</A>');
//-->
</script>
</BODY>
</HTML>
this brings out a drop-down window on IE 6 (using WInXP SP2) saying
"active content is blocked" etc. However, similar useage of the same
document.referrer function in another page I have seen is OK. What is
wrong? The behaviour is the same if the <script> tag contains
"JavaScript", or not.
Also, if I have a link to the page containing the code above on a
webpage (say "C:\Trev\refer1.htm"),
then the referrer is given as "C:\Trev", and not the actual webpage
referrer. Why?
TIA
Trev
I'm trying to create some javascript that will provide the user of the
referring page, but if I do something like the following:
<HTML>
<HEAD>
</HEAD>
<BODY>
<script>
<!--
url= document.referrer;
document.write('<A HREF="' + url + '">This Link</A>');
//-->
</script>
</BODY>
</HTML>
this brings out a drop-down window on IE 6 (using WInXP SP2) saying
"active content is blocked" etc. However, similar useage of the same
document.referrer function in another page I have seen is OK. What is
wrong? The behaviour is the same if the <script> tag contains
"JavaScript", or not.
Also, if I have a link to the page containing the code above on a
webpage (say "C:\Trev\refer1.htm"),
then the referrer is given as "C:\Trev", and not the actual webpage
referrer. Why?
TIA
Trev