JS Chrome top.document
Posted
by stevewk10
on Stack Overflow
See other posts from Stack Overflow
or by stevewk10
Published on 2010-05-30T00:45:21Z
Indexed on
2010/05/30
0:52 UTC
Read the original article
Hit count: 350
What is Chrome's equivalent of 'top.document', valid in both FF and IE8.
In Chrome, 'top' is valid, top.length returns 2 (frames)...as it should. But top.document returns 'undefined'. Needed to get an element. top.document.getElementById(id) works perfectly in both FF and IE8.
Thanks in advance, swk
© Stack Overflow or respective owner