BOM
(Browser Object Model)
Main parts of browser:
- DOM
- BOM
- Global scope
window.navigator
The window.navigator read-only property returns a reference to the Navigator object, which can be queried for information about the application running the script.
window.screen
Returns a reference to the screen object associated with the window. The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
window.location
The window.location read-only property returns a Location object with information about the current location of the document.
window.history
The window.history read-only property returns a reference to the History object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
Default dialog methods
- Alert
The window.alert() method displays an alert dialog with the optional specified content and an OK button.
- Confirm
The window.confirm(message) method displays a modal dialog with an optional message and two buttons, OK and Cancel.
- Prompt
The window.prompt(text, value) displays a dialog with an optional message prompting the user to input some text.
JS - BOM
By Serejka Simanovich
JS - BOM
- 721