Search code examples
javascriptdomstandardsw3c

Looking for official docs for all Javascript (BOM, DOM, built-in) Objects


when I make Web Application. As far as I know, There are three objects(BOM, DOM, built-in Objects) to javascript. If I want to manipulate DOM object. I refer DOM official documentation in w3c.org following this.

https://www.w3.org/DOM/DOMTR

If I want to know built-in objects. I can refer ECMA-262 documentation. It's very hard to read but it's official documentation.

https://www.ecma-international.org/publications/standards/Ecma-262.htm

If I want to control browser. I am googleing about BOM. I wonder where is offical BOM Object documentation. I think Google and Mozilla have to provide official documentation. but I couldn't find Where it is.

first question : Is there BOM standard like DOM?

Second question : Where is Chrome official BOM documentation?


Solution

  • I think maybe the closest thing to what you are looking for is a list of Web API interfaces - these are things like the Clipboard API and Navigator, which are implemented different on each browser, but accessible via a shared Javascript interface. The list on MDN Docs is pretty comprehensive.

    Browsers can also expose extra internal controls, like adding extra options to the right click menu, by providing APIs that are callable from "extensions". However, unlike the Web APIs, these are often very different browser-to-browser, and it is best to refer to the documentation of that specific browser. For example, to add something to the right click menu in Chrome, that would be through the chrome.contextMenus API.

    • Chrome Extension APIs: here
    • Firefox Extension APIs: here

    Finally, if you really want to go in-depth, you could always look at the source-code for Chromium or Firefox/Gecko. One of the great benefits of open-source!