We have the following when javascript runs in a browser
Browser
DOM
BOM
Javascript core
windows objects represent browser windows and provide methods to control it. It is a global object
Document Object Mode (DOM)
Dom represents the page content as an HTML
document.body - Page body as Js object
document.body.style.background="green" - Change page background to green
Browser Object Mode (BOM)
Bom represents additional objects provided by the browser (host environment) for working with everything except the document.
The function alert/confirm/prompt are also a part of the BOM.
location href= "arpanmukherjee.netlify.app" - Redirect to another URL.