title: iframe onload with src not working in IE11
body: <p>I have a <code>JavaScript</code> program that gets the last modified date of a txt file. The code works fine in Firefox but for some reason, it does nothing in IE11. My code is listed below. </p>
  
  <p><code>JavaScript</code> code:</p>
  
  <pre><code>function getLastMod(){
      var myFrm = document.getElementById('myIframe');
      var lastMod = new Date(myFrm.contentWindow.document.lastModified);
      var getSpan = document.getElementById('LastModified');
      getSpan.innerHTML += "&lt;font color=red&gt; (File Last Updated: " + lastMod.toLocaleString() + ")&lt;/font&gt;";
  }
  </code></pre>
  
  <p><code>HTML</code> code:</p>
  
  <pre><code>&lt;span id="LastModified"&gt;&lt;/span&gt;
  &lt;iframe id="myIframe" onload="getLastMod()" src="date.txt" style="display:none;"&gt;&lt;/iframe&gt;
  </code></pre>