Periksa apakah elemen terlihat atau disembunyikan di DOM

// Where el is the DOM element you'd like to test for visibility
function isHidden(el) {
    var style = window.getComputedStyle(el);
    return (style.display === 'none')
}
johannb75