In JavaScript, how would you check if an element is actually visible?
I don't just mean checking the visibility
and display
attributes. I mean, checking that the element is not
visibility: hidden
ordisplay: none
- underneath another element
- scrolled off the edge of the screen
For technical reasons I can't include any scripts. I can however use Prototype as it is on the page already.