displays an alert box with a message and an OK button. displays the confirm dialogue box, which includes a message and an OK/Cancel button. provides a dialogue window for the user's input a new window is opened
Top of the hierarchy is the window object. It is the object hierarchy's highest level. Each HTML document that is loaded into a window is referred to as a document object. The page's content is contained in the document.