title: How to check if HTML style attribute exists with javascript
body: <p>I'm trying to find out if a specific element has an inline style attribute or not:
  I'm sure there's an easy method to check this, but I can't seem to find it.
  I tried multiple things already including this:</p>
  
  <pre><code>var contentWrapper = document.getElementById("contentWrapper");
  if(contentWrapper.style.display.toString=="")
  alert("Empty");
  else
  alert("Not Empty");
  </code></pre>
  
  <p>Thank you for your help!</p>