IE Progress Bar Loading Forever for Iframe

IE’s progress bar sometimes makes it seem that the page is loading forever when you load a page in an iframe. The following is a workaround for it:

  • Create a blank.html file in the root web directory. This file need not contain anything.
  • Create an invisible iframe in your page by setting frameborder="0" and style="height: 0; width: 0"
  • After the Javascript code that loads the iframe, add the following line:
    setTimeout("document.getElementById('ifrDummy').src = 'blank.html'", 100);

6 August 2007 | Software engineering, HTML, Javascript | Comments

Comments:

  1.  
  2.  
  3.