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

One Response to “IE Progress Bar Loading Forever for Iframe”

  1. 1 Sdk Cz 25 February 2009 @ 2:23 am

    This is a great technique.

    Thanks a lot. I’ve searched lots of forums but i could not find the solution. This works for ie 7.

    Thx thx thx

Comments:

  1.  
  2.  
  3.