[Javascript] location.href

allard schripsema allard-schripsema at procergs.rs.gov.br
Mon Mar 15 11:14:54 CST 2004


You cannot access manipulate pages from different sites with javascript,
that would be a security flaw.
It´s blocked by the browser That´s the "Permission denied"

If you really want pages from other sites you could use something like the
(serverside) xmlhttp object to get the page,
making the browser think it´s from your site.


----- Original Message ----- 
From: "Innerlab" <innerlab at hotmail.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Monday, March 15, 2004 1:57 PM
Subject: [Javascript] location.href


> 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