The onResize event handler is fired when the window is resized.
<html> <body onResize='alert("Do NOT resize this window!")'></html>