title: How to get class name through JavaScript
body: <p>How do I get the class name through JavaScript given no id with this <code>span</code>.</p>
  
  <p>Like: <code>&lt;span class="xyz"&gt;&lt;/span&gt;</code> </p>
  
  <p>I want to change the background color of this <code>span</code>.</p>
  
  <p>How can I solve this? Please help me.</p>
  
  <p>tympanus.net/Tutorials/CSS3PageTransitions/index3.html#contact</p>