With IE 8 beta on XP(SP3) I could not get the example to work. The DocumentCompleted event is too late to start listening for errors. To make it work I had to use the Navigated event (because it fires before loading) to add the handler to the Document.Error event. Unfortunately I also had to set my Internet Options to true for the following 2 advanced options: 'Disable Script Debugging (Internet Explorer)', and 'Disable Script Debugging (Other). Without doing this, a debugging dialog box appears. I feel there should be a programmatic way to prevent this, but so far have not found it.