Link to home
Start Free TrialLog in
Avatar of metalaureate
metalaureateFlag for United States of America

asked on

Detecting whether a div is visible

Is there a way to detect whether any given DIV is visible? I.e., not only is .style.visibility set to visible, but that it isn't inside any other element that makes it invisible. We can exclude any issues of the element being out of view because below the screen fold, or covered up by something else (although that would be neat). The problem I'm having is that when I detect a DIV's visibility attribute, this doesn't tell me if it is overridden by some other DIV.
ASKER CERTIFIED SOLUTION
Avatar of kadaba
kadaba
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of metalaureate

ASKER

Thank you - helpful.