title: Insert HTML as a String, without JQuery
body: <p>I'm looking for a method to insert a string, which contains HTML data, into a div element.
  The string is loaded via XHR, and there is no way of knowing what elements and such are in it.</p>
  
  <p>I've searched around for a bit, and found some things that might help, but wouldn't completely work for me.  What I need is something similar to the update() function from the Prototype framework:
  <a href="http://prototypejs.org/api/element/update" rel="noreferrer">http://prototypejs.org/api/element/update</a></p>
  
  <p>The platform I'm writing for does not allow frameworks to be used, or JQuery. I'm stuck with Javascript.  Anyone have any ideas?</p>
  
  <p>I can't use innerHTML, as it does not apply any updates or functions or basically anything that's supposed to occur on load</p>
  
  <p>I have some <code>onload</code> events that need to occur, and as best I know, using innerHTML does not execute onload events.  Am I incorrect?</p>
  
  <p>EDIT 2 years later:
  For anyone else reading, I had some serious misconceptions about the <code>onload</code> event.  I expected that it was a valid event for any element, while it is only valid for the <code>&lt;body/&gt;</code> element.  <code>.innerHTML</code> is the proper method to do what I was looking for, and any extra functionality for the elements added, needs to be done manually some other way.</p>