This is strange: When I open some intranet pages in IE6, the following code generates a "Permission denied" JavaScript runtime error: someVar = top.location.href; Here's the strange part: After I'm asked to debug and after I've selected "No", if I now hit Refresh (<F5>), the same page loads fine! Can someone please enlighten me on what causes this error? I have created another web page where I get this same kind of strange error. Here I tried to workaround this problem by creating a dummy page being redirected to the problematic page (using IIS Redirection 3.2). By entering the dummy page's address into IE6 (and then being redirected to the second page), everything works fine as well. I don't get it...... Any help is quite appreciated. TIA, Axel Dahmen
"Axel Dahmen" <keentoknow@newsgroup.nospam> wrote in message news:153FC787-274E-49D3-92ED-C62D1F4A6BC8@microsoft.com... > This is strange: > > When I open some intranet pages in IE6, the following code generates a > "Permission denied" JavaScript runtime error: > > someVar = top.location.href; > > Here's the strange part: After I'm asked to debug and after I've selected > "No", if I now hit Refresh (<F5>), the same page loads fine! > > Can someone please enlighten me on what causes this error? > > I have created another web page where I get this same kind of strange error. > Here I tried to workaround this problem by creating a dummy page being > redirected to the problematic page (using IIS Redirection 3.2). By entering > the dummy page's address into IE6 (and then being redirected to the second > page), everything works fine as well. > > I don't get it...... > This will be cross domain scripting problem. The code excuting the script is running in the context of one domain whilst the page being displayed by the the top window is from another domain. -- Anthony Jones - MVP ASP/ASP.NET