If you remove the blue element, the height of the document decreases.
When the size of the document changes, an onresize event is fired on the window in Internet Explorer.
In Firefox, Opera, Google Chrome and Safari, an onresize event is fired on the window when the browser window is resized.
Resizing the browser window fires the onresize event in Internet Explorer, too.
Try it, resize the browser window!