title: Why do it get parent.childElementCount as undefined
body: <p>I am teaching myself some Javascript and don't understand why Chrome console tells me this when I try it out at the Google homepage:</p>
  
  <pre><code>parent
  &gt; DOMWindow
  parent.childNodes
  &gt; undefined
  parent.frames[0].childElementCount
  &gt; undefined
  parent.frames.length
  &gt; 1
  parent.frames[0].name
  &gt; "wgjf"
  parent.wgjf.childElementCount
  &gt; undefined
  parent.frames[0].childElementCount
  &gt; undefined
  parent.childElementCount
  &gt; undefined
  </code></pre>
  
  <p>I do notice that there are frames, and the parent has child nodes, so why all these undefined?</p>
  
  <p>I would like to teach myself to the point that I can figure out how clicking on a username in the gmail chat window on the left opens up a chat window on the right - I should be able to trace the list of function calls that makes this happen</p>