title: I need the equivalent of .load() to JS
body: <p>I'm developing a script but I mustn't use jQuery library so I need the equivalent of .load() in JS.</p>
  
  <p>I need to do this without jQuery:</p>
  
  <pre><code>$(document).ready(function(){
  
  $('#a').click(function(){
     $('body').append('&lt;div id="b"&gt;&lt;/div&gt;')
     $('#b').load('x.html')
  });
  
  });
  </code></pre>
  
  <p>Thanks!</p>