title: access iframe name from inside iframe
body: <p>I though this would be simple enough but I can't find the answer. I need to know how I can access an iframe's name from within said iframe. I was trying something like this but it's not working.</p>
  
  <pre><code>&lt;iframe name="thename"&gt;
    &lt;script type="text/javascript"&gt;
      alert(parent.name);
    &lt;/script&gt;
  &lt;/iframe&gt;
  </code></pre>