JavaScript has three kind of popup boxes: Alert box, Confirm box, and The window.alert() method can be written without the window prefix. Login Form.