Tech Journal Back to Tech Journal

Why does MSIE display the error message "Operation Aborted" or "htmlfile: Operation Aborted" and refuse to display the page?

It's not a connection-error, since I can do "View Source" and see the entire page!

Turns out it's an old bug (I've found references to it from 2004!) in MSIE, stemming from something going wrong in the DOM manipulations. Basically, if you do something like modify the innerHTML of the body, or use innerHTML to insert elements into the document before the page has finished loading, this will happen.

The solution: do the modifications after the "onload" event has fired.


Last updated on 2008-01-02 13:03:09 -0700, by Shalom Craimer

Back to Tech Journal