JS Error: Access Denied...

admin

Administrator
Staff member
Hello all,

If anyone could help on this one, it would be much appreciated.

I've spend a lot of time trying to figure this out. So I finally decided to ask you experts for help!

This is my problem:

On my domain I'm using Frame Redirect!
On my page I have this piece of code, which generates and Error on the status bar on IE, stating Access Denied!

Here's the code that I have on that page:

<script language="JavaScript">
<!--
document.write("<img src=http://www.webdeveloper.com/forum/archive/index.php/\"http://mypath/log.cgi?ref="+top.document.referrer+"\" width=1 height=1 border=0>");
//-->
</script>
<noscript>
<img src="http://mypath/log.cgi?ref=noscript" width=1 height=1 border=0>
</noscript>

Now I think what's causing the error is the "top.document.referrer"!!! How do I change the code, or add something to it so that it doesn't cause the error???
Thanks for any help!
 
Back
Top