title: setAttribute iFrame name and Chrome
body: <p>Here is a simple setAttribute for an iFrame to append a name. </p>
  
  <p>Issue is that the below code works great in all browsers except Chrome.</p>
  
  <pre><code>&lt;iframe id="frame" frameborder="0" src="http://website.ca/"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Parent javascript:</p>
  
  <pre><code>(function() {
      var newFrameName = "hello";
      document.getElementById("frame").setAttribute("name", newFrameName);
  
  })();
  </code></pre>
  
  <p>in the iFrame:</p>
  
  <pre><code>    var iframeName = window.name;
      alert (iframeName );
  </code></pre>
  
  <p>Alert calls "Hello" in all browsers, Chrome calls "frame" -- which is the ID of the iFrame.
  looking at source (through the elements inspector), in Chrome, I see the correct name for the iFrame: name="Hello" ... but the alert calls the id.</p>
  
  <p>why would that be? I'm i missing anything?</p>