[Javascript] location.href

Innerlab innerlab at hotmail.com
Mon Mar 15 12:00:52 CST 2004


The reason I wanted this to work was because I was trying to make my own
custom
surf-n-bookmark ASP and javascript script. On a small top frame I wanted to
have buttons
to save the location.href of the bottom frame to a database. Oh well...




> 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
> >
> >
> >
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>



More information about the Javascript mailing list