File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes top.window.frames[0].links[] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "top.window.frames[0].links[]" Watch "top.window.frames[0].links[]" New topic



Joined: Mar 22, 2002
Posts: 4
Dear All;
I have a page that uses frames. First frame contains different links and the second also contains links. I need to write a code in the page that is contained in the first frame that can access the links[] on the second frame.
I need help.
When I try to achieve this by using top.window.frames[1].links[xxx] it gives me an error message that the 'access is denied'.
Any solution for that?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Have you tried a Google search? I found many many links including this one.
That link talks about access problems with pages all in the same domain, if you are looking at frames containing dtaa from multipe domains, this link is more what you want.
A more generic definition is here.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Basic Idea:
If you are using a different page on a different sever, you can not do it.
I agree. Here's the link:
subject: top.window.frames[0].links[]
It's not a secret anymore!