title: Return the class of the parent node in javascript (not jquery)
body: <p>I am trying to return the class of the parentnode of a selected element using Javascript. Here is what I have, but it's not working. What am I doing wrong?</p>
  
  <pre><code>function pClass(){
    var pc = this.parentNode.className;
    return pc;
  }
  </code></pre>
  
  <p>thanks.</p>