Vincent van Beveren wrote:
Hi Jeremy,
> alert(document.frames.document.getElementsByTagNam e('DIV').length);
You forgot to specify which frame:
document.frames[0].document.getElementsByTagName('DIV').length;
or
document.frames['thename'].document.
getElementsByTagName('DIV').length;
The rest looks fine to me. If the content of the frame is loaded from
a different server there would be some security issues.
Good luck,
Vincent
Jeremy Gollehon wrote:
I'm trying to help a friend out but couldn't find an answer so thought I'd
post here.
Is it possible to access the frame window at http://www.5460.net (a chinese
site)?
We're trying to get the DIV elements from its DOM.
We were trying:
alert(document.frames.document.getElementsByTagNam e('DIV').length);
with no luck.
Thanks for any help!
-Jeremy
If the OP loads another domain into a frame in his frameset, he will have no
access to the content within that frame.
This seems to be what he was asking for, and it simply won't work in the browser's
default security environment.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq