title: Assigning ID to object (just one) with javascript
body: <p>For some reason, the code below doesn't work. I need it to assign an ID to <strong>one</strong> object. What am I doing wrong below?</p>
  
  <pre><code>  var frame = document.getElementsByTagName("iframe").setAttribute("id","iframe");
  </code></pre>
  
  <p>I have a jQuery libary installed, if it should be of any use. </p>