Quick Intro to JS Browser BOM
Published in
3 min readAug 28, 2020
Index
_ JS Navigator
_ JS Window
_ JS Location
_ JS History
Intro
Let’s spend this time briefly looking at what is available for JS to “talk to” the browser. There are often cases where you need to interact with user’s browsers. For example, window.navigator.userAgent
returns the information about which browser user is currently using. There are many useful BOM objects/functions available. Let’s go over some of them
JS Navigator
Browser Cookies
The cookieEnabled
property returns true if cookies are enabled, otherwise false