E
Erwin Moller
Hi group,
I have a rather big page with many (databasedependent) pieces of HTML.
My question boils down to the following problem (simplified):
Considering the folowwing piece of HTML:
<div id="div1" style="display:none">
<div id="div2" style="display:block">
sometextsometextsometext
</div>
</div>
document.getElementById("div2").style.display will return 'block'.
But of course, sometextsometextsometext will not be displayed because the
outer div is not visible.
All OK so far.
Question: If I have a reference to div2, and NO knowledge of parent
elements, can I find out if it is visible?
TIA
Regards,
Erwin Moller
I have a rather big page with many (databasedependent) pieces of HTML.
My question boils down to the following problem (simplified):
Considering the folowwing piece of HTML:
<div id="div1" style="display:none">
<div id="div2" style="display:block">
sometextsometextsometext
</div>
</div>
document.getElementById("div2").style.display will return 'block'.
But of course, sometextsometextsometext will not be displayed because the
outer div is not visible.
All OK so far.
Question: If I have a reference to div2, and NO knowledge of parent
elements, can I find out if it is visible?
TIA
Regards,
Erwin Moller