Web Development

Chrome Extension

Service Worker: A service worker is a script that your browser runs in the background, separate from a web page, opening the door to features that don’t need a web page or user interaction. It is a type of web worker1 that is used to cache resources and provide offline access to web pages. S

Content Scripts: Content scripts are extension-provided scripts that run in the context of a web page. They are different from scripts that are loaded by the page itself, including those which are provided in elements within the page1. Content scripts can see and manipulate the page's DOM, just like normal scripts loaded by the page12. They are able to read details of the web pages the browser visits, make changes to them, and pass information to their parent extension2.

DOM stands for Document Object Model. It is a programming interface for web documents that represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page. The HTML DOM is a standard object model and programming interface for HTML. It defines the HTML elements as objects, the properties of all HTML elements, the methods to access all HTML elements, and the events for all HTML elements. The DOM is not a programming language, but without it, the JavaScript language wouldn’t have any model or notion of web pages, HTML documents, SVG documents, and their component parts. The document as a whole, the head, tables within the document, table headers, text within the table cells, and all other elements in a document are parts of the document object model for that document. They can all be accessed and manipulated using the DOM and a scripting language like JavaScript1

Last updated