title: How to add an element to 'body' using Prototype?
body: <p>I have created an element like this:</p>
  
  <pre><code>var myDiv = new Element('div');
  myDiv.update('Hello!');
  </code></pre>
  
  <p>I want to add <code>myDiv</code> to body.</p>
  
  <p>I tried</p>
  
  <pre><code>$('body').insert(myDiv);
  </code></pre>
  
  <p>But it is not working. I also tried</p>
  
  <pre><code>$('body')[0].insert(myDiv);
  </code></pre>
  
  <p>thinking that <code>$('body')</code> was returning an array. Even that didn't work.</p>
  
  <p>How can I add <code>myDiv</code> to body?</p>
  
  <p>Thanks.</p>