title: Check visibility of an object with JavaScript
body: <p>I have a variable called "object". How can I check with JavaScript if it is visible?</p>
  
  <p>I tried !object.getAttribute("dislay", "none")... but that doesn't work.</p>
  
  <p>Could somebody help me please?</p>
  
  <p>Thank you!</p>