Click to See Complete Forum and Search --> : get other document's links
cornelius
08-07-2003, 04:55 AM
how can i get the list of links in a document or a window i created with window.open?
when i try to access the links like new_window.document.links.length it gives me the error "access is denied" :mad: how can i get the links?
thanks, udi
requestcode
08-07-2003, 06:34 AM
Is the document in the child window in the same domain as the parent window?
Charles
08-07-2003, 06:39 AM
Originally posted by requestcode
Is the document in the child window in the same domain as the parent window? Not if an "access is denied" error is being thrown.
cornelius
08-07-2003, 06:51 AM
how do i make the child window with the same domain?
i just used window.open to open a new window
Charles
08-07-2003, 06:58 AM
You aren't allowed to play around with other people's pages. The only way around this restriction is to use a script, running on your server, that gets the file in question, adusts the URLs and then sends the file to the browser.
cornelius
08-07-2003, 07:10 AM
i only want to get a list of the links in a page,
not change the page.
can't i do that?