{"id":3144,"date":"2025-11-16T11:58:26","date_gmt":"2025-11-16T10:58:26","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=3144"},"modified":"2025-11-16T11:58:29","modified_gmt":"2025-11-16T10:58:29","slug":"javascript-browser-object-model-bom","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/","title":{"rendered":"JavaScript Browser Object Model (BOM)"},"content":{"rendered":"\n<p>The&nbsp;<strong>Browser Object Model (BOM)<\/strong>&nbsp;refers to all the JavaScript-accessible objects provided by the&nbsp;<strong>web browser<\/strong>&nbsp;(not the web page) that allow developers to interact with the browser itself \u2014 things like the window, the screen, the browser history, the location bar, and pop-ups.<\/p>\n\n\n\n<p><a href=\"https:\/\/app.codeflarelimited.com\">Learn JavaScript from the comfort of your home<\/a><\/p>\n\n\n\n<p>While the&nbsp;<strong>DOM<\/strong>&nbsp;is about the&nbsp;<em>document<\/em>&nbsp;(HTML), the&nbsp;<strong>BOM<\/strong>&nbsp;is about the&nbsp;<em>browser environment<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>BOM vs DOM (Quick Difference)<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Feature<\/th><th>DOM<\/th><th>BOM<\/th><\/tr><\/thead><tbody><tr><td>What it Represents<\/td><td>HTML document<\/td><td>Browser environment<\/td><\/tr><tr><td>Provided by<\/td><td>Browser<\/td><td>Browser<\/td><\/tr><tr><td>Examples<\/td><td><code>document<\/code>, elements, nodes<\/td><td><code>window<\/code>,&nbsp;<code>navigator<\/code>,&nbsp;<code>location<\/code>,&nbsp;<code>history<\/code><\/td><\/tr><tr><td>Purpose<\/td><td>Manipulate page content<\/td><td>Interact with browser features<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. The\u00a0<code>window<\/code>\u00a0Object (The ROOT of BOM)<\/strong><\/h3>\n\n\n\n<p>The&nbsp;<strong><code>window<\/code><\/strong>&nbsp;object is the global object for JavaScript running in the browser.<\/p>\n\n\n\n<p>Everything in the BOM hangs from&nbsp;<code>window<\/code>.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(window.innerWidth);\nconsole.log(window.innerHeight);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Common Window Methods<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Method<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>alert()<\/code><\/td><td>Displays popup alert<\/td><\/tr><tr><td><code>confirm()<\/code><\/td><td>OK\/Cancel popup<\/td><\/tr><tr><td><code>prompt()<\/code><\/td><td>Input popup<\/td><\/tr><tr><td><code>setTimeout()<\/code><\/td><td>Run function once after delay<\/td><\/tr><tr><td><code>setInterval()<\/code><\/td><td>Run function repeatedly<\/td><\/tr><tr><td><code>clearTimeout()<\/code><\/td><td>Stop timeout<\/td><\/tr><tr><td><code>clearInterval()<\/code><\/td><td>Stop interval<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">setTimeout(() => {\n  console.log(\"This runs after 3 seconds\");\n}, 3000);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2.\u00a0<code>window.location<\/code>\u00a0Object \u2014 URL Information &amp; Navigation<\/strong><\/h2>\n\n\n\n<p>Controls and retrieves parts of the current browser URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Common Properties<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Property<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>location.href<\/code><\/td><td>Full URL<\/td><\/tr><tr><td><code>location.hostname<\/code><\/td><td>Domain<\/td><\/tr><tr><td><code>location.pathname<\/code><\/td><td>Page path<\/td><\/tr><tr><td><code>location.search<\/code><\/td><td>Query string<\/td><\/tr><tr><td><code>location.hash<\/code><\/td><td>Fragment (#)<\/td><\/tr><tr><td><code>location.protocol<\/code><\/td><td>http: \/ https:<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Methods<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Method<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>location.assign()<\/code><\/td><td>Load a new page<\/td><\/tr><tr><td><code>location.replace()<\/code><\/td><td>Replace current page (no back button)<\/td><\/tr><tr><td><code>location.reload()<\/code><\/td><td>Refresh page<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(location.href);\nlocation.reload();<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3.\u00a0<code>window.history<\/code>\u00a0Object \u2014 Browser Navigation<\/strong><\/h2>\n\n\n\n<p>Allows JavaScript to move forward\/backward in the browsing history.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Methods<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Method<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>history.back()<\/code><\/td><td>Go to previous page<\/td><\/tr><tr><td><code>history.forward()<\/code><\/td><td>Go to next page<\/td><\/tr><tr><td><code>history.go(n)<\/code><\/td><td>Move n steps (-1, +1, etc.)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">history.go(-1); \/\/ Equivalent to back()<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4.\u00a0<code>window.screen<\/code>\u00a0Object \u2014 Device Screen Info<\/strong><\/h2>\n\n\n\n<p>Provides information about the user&#8217;s screen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Common Properties<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Property<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>screen.width<\/code><\/td><td>Screen width<\/td><\/tr><tr><td><code>screen.height<\/code><\/td><td>Screen height<\/td><\/tr><tr><td><code>screen.availWidth<\/code><\/td><td>Available width<\/td><\/tr><tr><td><code>screen.availHeight<\/code><\/td><td>Available height<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(screen.width, screen.height);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. <code>window.navigator<\/code>\u00a0Object \u2014 Browser &amp; Device Metadata<\/h2>\n\n\n\n<p>Gives information about the browser and environment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Useful Navigator Properties<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Property<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>navigator.userAgent<\/code><\/td><td>Browser\/OS details<\/td><\/tr><tr><td><code>navigator.language<\/code><\/td><td>User&#8217;s language<\/td><\/tr><tr><td><code>navigator.onLine<\/code><\/td><td>Online\/offline status<\/td><\/tr><tr><td><code>navigator.geolocation<\/code><\/td><td>GPS access (requires permission)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(navigator.language);\nconsole.log(navigator.onLine);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Geolocation Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">navigator.geolocation.getCurrentPosition(pos => {\n  console.log(pos.coords.latitude, pos.coords.longitude);\n});<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. Popup Control (<code>open<\/code>,\u00a0<code>close<\/code>,\u00a0<code>moveTo<\/code>,\u00a0<code>resizeTo<\/code>)<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Open a new popup window<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let popup = window.open(\"https:\/\/example.com\", \"_blank\", \"width=500,height=500\");<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Close it<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">popup.close();<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. Timers \u2014\u00a0<code>setTimeout<\/code>\u00a0&amp;\u00a0<code>setInterval<\/code><\/strong><\/h2>\n\n\n\n<p>Already part of\u00a0<code>window<\/code>, but extremely important.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example: Interval<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let i = 0;\nlet timer = setInterval(() => {\n  console.log(\"Tick: \" + i++);\n  if (i === 5) clearInterval(timer);\n}, 1000);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. Cookies via BOM<\/strong><\/h2>\n\n\n\n<p>You can access cookies using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">document.cookie = \"username=John; expires=Fri, 31 Dec 2025 23:59:59 GMT\";\nconsole.log(document.cookie);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary Table of BOM Objects<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>BOM Object<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>window<\/code><\/td><td>Root of everything<\/td><\/tr><tr><td><code>location<\/code><\/td><td>URL navigation<\/td><\/tr><tr><td><code>history<\/code><\/td><td>Forward\/back navigation<\/td><\/tr><tr><td><code>screen<\/code><\/td><td>Screen\/device display info<\/td><\/tr><tr><td><code>navigator<\/code><\/td><td>Browser\/system info<\/td><\/tr><tr><td><code>alert\/prompt\/confirm<\/code><\/td><td>Popup dialogs<\/td><\/tr><tr><td><code>setTimeout\/setInterval<\/code><\/td><td>Timers<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The\u00a0<strong>BOM (Browser Object Model)<\/strong>\u00a0is the set of JavaScript-accessible objects provided by the browser that let you interact with browser features such as navigation, history, screen, popups, timers, and browser metadata.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;Browser Object Model (BOM)&nbsp;refers to all the JavaScript-accessible objects provided by the&nbsp;web browser&nbsp;(not the web page) that allow<\/p>\n","protected":false},"author":1,"featured_media":3145,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-3144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Browser Object Model (BOM)<\/title>\n<meta name=\"description\" content=\"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Browser Object Model (BOM)\" \/>\n<meta property=\"og:description\" content=\"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-16T10:58:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-16T10:58:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"JavaScript Browser Object Model (BOM)\",\"datePublished\":\"2025-11-16T10:58:26+00:00\",\"dateModified\":\"2025-11-16T10:58:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/\"},\"wordCount\":383,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/2-6.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/\",\"name\":\"JavaScript Browser Object Model (BOM)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/2-6.png\",\"datePublished\":\"2025-11-16T10:58:26+00:00\",\"dateModified\":\"2025-11-16T10:58:29+00:00\",\"description\":\"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/2-6.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/2-6.png\",\"width\":1080,\"height\":1080,\"caption\":\"browser object model\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-browser-object-model-bom\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Browser Object Model (BOM)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Browser Object Model (BOM)","description":"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Browser Object Model (BOM)","og_description":"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)","og_url":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2025-11-16T10:58:26+00:00","article_modified_time":"2025-11-16T10:58:29+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"JavaScript Browser Object Model (BOM)","datePublished":"2025-11-16T10:58:26+00:00","dateModified":"2025-11-16T10:58:29+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/"},"wordCount":383,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/","url":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/","name":"JavaScript Browser Object Model (BOM)","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","datePublished":"2025-11-16T10:58:26+00:00","dateModified":"2025-11-16T10:58:29+00:00","description":"The\u00a0Browser Object Model (BOM)\u00a0refers to all the JavaScript-accessible objects provided by the\u00a0web browser\u00a0(not the web page)","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","width":1080,"height":1080,"caption":"browser object model"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-browser-object-model-bom\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"JavaScript Browser Object Model (BOM)"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/11\/2-6.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=3144"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3144\/revisions"}],"predecessor-version":[{"id":3146,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3144\/revisions\/3146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/3145"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=3144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=3144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=3144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}