window is the browser's global scope and the top of the object hierarchy: it holds document, location, navigator, setTimeout, and your global variables. In DHTML you use it for viewport size, timers, and dialogs. Because it's global, window.alert and bare alert are the same call.