title: Img src url with variables
body: <p>I would like to load an image with the page load using javascript and html.  Here was my original code that worked perfectly in IE11 and Firefox on Windows 10 but not in IE11 on Windows7.  Is it the syntax/quotes that it doesn't like?  </p>
  
  <pre><code>var1 = "someURl";
  var2 = "someEndingToURl";
  var mainImgsrc = var1 + 'some_text' + var2;
  
  document.addEventListener('DOMContentLoaded', function () {
  document.getElementById('IMG1').src= mainImgsrc
  
  &lt;img id="IMG1" src="" width="1000px" height="700px" name="mymap" align="middle" alt="Map" ;/&gt;
  </code></pre>