Web features explorer

checkVisibility()

Newly available since 2024-03-05
Tags: api

The checkVisibility() method checks if an element is potentially visible, with optional parameters for the kinds of visibility to check. For example, it checks whether the element has the style display: none, but can also check for visibility: hidden. To learn more, see Element: checkVisibility() method at MDN.

Compatibility