[Javascript] location.href

Håkan Magnusson hakan at backbase.com
Mon Mar 15 11:12:52 CST 2004


Cross-domain script access is a security risk, that's why the browser 
wont allow you to access other domains than the one you're currently on. 
If you're targeting old browsers (NN4), a signed script could do it for 
you. If you feel like hacking away, you can (of course) rely on exploits 
and bugs in [popular browser] to allow this one way or the other, but I 
don't care much for that browser so I have no idea on exactly how you 
should go about doing these hacks.

Regards,
Hakan

Innerlab wrote:
> Hello:
> 
> I have a page consiting of two frames with the names "header" and "content".
> Different pages are loaded into the "content" frame, specially from other
> sites on the internet.
> 
> The header frame has javascript code that's supposed to detect
>     parent.content.location.href      and document.write it, redirect it,
> etc.
> 
> It all works fine while the pages are within http://localhost, but when the
> content frame is
> a url on the internet, I get the error (on Nescape):
> 
> "Error: uncaught exception: Permission denied to get property Location.href"
> 
> Could it be because I need Administrator priviliges on the computer I am
> using
> to do that? Doesn't make much sense.... any ideas?
> 
> 
> 
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> 



More information about the Javascript mailing list