Vladimir Tokmakov
Element visibility 14 October 2005 |
|
Task: | Determine whether CSS property |
||
An HTML element can be hidden either through JavaScript or using CSS property display
. It is difficult to interpret CSS logic by means of JavaScript, and there is no need to do this. Its much easier to request the objects offsetHeight
(if 0 ≈, then the element is hidden).