Category: Browser BOM

  • Console Object

    Window Console Object In JavaScript, the ‘console’ object is a property of the window object. It allows the developers to access the debugging console of the browser. The console object contains the various methods used for different functionalities. In Node.js, the console object is used to interact with the terminal. We access the console object…

  • Location Object

    Window Location Object The location object in JavaScript provides information about the browser’s location, i.e., URLs. It is a built-in property of both the window and document objects. We can access it using either window.location or document.location. The ‘location’ object contains various properties and methods to get and manipulate the information of the browser’s location (URL). JavaScript Location Object Properties We can use the…

  • Navigator Object

    Window Navigator Object The navigator object in JavaScript is used to access the information of the user’s browser. Using the ‘navigator’ object, you can get the browser version and name and check whether the cookie is enabled in the browser. The ‘navigator’ object is a property of the window object. The navigator object can be accessed using the read-only window.navigator property.…

  • History Object

    Window History Object In JavaScript, the window ‘history’ object contains information about the browser’s session history. It contains the array of visited URLs in the current session. The ‘history’ object is a property of the ‘window’ object. The history property can be accessed with or without referencing its owner object, i.e., window object. Using the…

  • Screen Object

    Window Screen Object The screen object in JavaScript is a property of the ‘window’ object. The ‘screen’ object’s properties contain information about the device’s screen. The screen object can be accessed by using the window.screen syntax. We can also access it without using the window object. Screen Object Properties The screen object has a number of properties that provide information about the screen’s orientation, resolution,…

  • Document Object

    Window Document Object The document object is a JavaScript object that provides the access to all elements of an HTML document. When the HTML document is loaded in the web browser, it creates a document object. It is the root of the HTML document. The document object contains the various properties and methods you can use to get details about HTML…

  • Window Object

    The JavaScript window object represents the browser’s window. In JavaScript, a ‘window’ object is a global object. It contains the various methods and properties that we can use to access and manipulate the current browser window. For example, showing an alert, opening a new window, closing the current window, etc. All the JavaScript global variables are properties…

  • Browser Object Model

    The Browser Object Model (BOM) in JavaScript refers to the objects provided by the browsers to interact with them. By using these objects, you can manipulate the browser’s functionality. For example, you can get the browser history and window size, navigate to different URLs, etc. The Browser object model is not standardized. It depends on…