Is there any way that I can check if an element is visible in pure JS (no jQuery) ?
So, for example, in this page: Performance Bikes, if you hover over Deals (on the top menu), a window of deals appear, but at the beginning it was not shown. It is in the HTML but it is not visible.
So, given a DOM element, how can I check if it is visible or not? I tried:
but it doesn't seem to be working. I wonder which attributes should I check. It comes to my mind:
display !== 'none' visibility !== 'hidden'
Any others that I might be missing?