title: how to get this frame's name in my javascript code
body: <p>this is my html code :</p>
  
  <pre><code>&lt;frameset rows="18,*" frameborder=0 framespacing=0&gt;
      &lt;frame src="/zh-cn/MapS/MainTop/" noresize scrolling=no&gt;
     &lt;frameset cols="0,*,210" name="menu"&gt;
       &lt;frame src="/zh-cn/MapS/MainLeft/" scrolling=no noresize&gt;
       &lt;frame src="/zh-cn/MapS/Watch/" name="desk"&gt;
       &lt;frame src="/zh-cn/MapS/RightMenu/" scrolling=no noresize&gt;
      &lt;/frameset&gt;
    &lt;/frameset&gt;
  </code></pre>
  
  <p>and this is the javascript code in on frame :</p>
  
  <pre><code>parent.parent.frames[2].frames[0]
  </code></pre>
  
  <p>i want to know which name is this frame ,</p>
  
  <p>i do this :</p>
  
  <pre><code>console.log(parent.parent.frames[2].frames[0].nodename)
  </code></pre>
  
  <p>it show:</p>
  
  <pre><code>undefined
  </code></pre>
  
  <p>so what can i do ,</p>
  
  <p>thanks</p>