This error was causing me grief. Web pages worked fine in FF with no errors bt in IE the error would pop-up, both online and localy as localhost. Googling found tons of messages but most related to a widespead problem with websites using the Sitemeter script. I wasnt.
Some people suggested removing MSN messenger or Skype. Others reported success with reseting all internet options to default. Nothing worked for me. And of course you had the FF fanboys saying to "just use FireFox".
The I found a more technical discussion. Seems it has to do with a javascipt class being called before the class had been declared or initialized. Some people had success with adding
defer="defer" to the javascript tag. This worked immediatly on my problem page but stuffed older, working pages but al least it put me on track.
More hunting found that the Ferant DHTML popup window library I was using caused the problem. The library loads at the top of my page with
<script language="JavaScript" src="/res/js/FerantLib.js" type="text/javascript"></script>
and is referenced at the end of the page with
<script language="JavaScript" type="text/javascript">
var EditWindowParams = {BorderWidth:0, ContentColor:'#e4ecf6', ContentHTML:'', Height:300, Width:700, Id:'EditWindow'}
var EditWindow = new FerantDHTMLWindow(EditWindowParams);
</script>
What appears to be happening is that, on small web pages, I'm calling
FerantDHTMLWindow before
FerantLib.js had a chance to fully load.
I found that adding
defer="defer" to my bottom javascript declaration solved the problem.
<script language="JavaScript" type="text/javascript" defer="defer">
var EditWindowParams = {BorderWidth:0, ContentColor:'#e4ecf6', ContentHTML:'', Height:300, Width:700, Id:'EditWindow'}
var EditWindow = new FerantDHTMLWindow(EditWindowParams);
</script>
Problem solved