Window JavaScript Tutorial

The onResize event handler is fired when the window is resized.