Table of Contents
- The code is converted to machine language.
- The machine executes the code.
- Store information within variables.
- Handle text strings.
- Run programs responding to events like clicking a link.
They run inside the browser and respond to the environment. We have, for example:
Document Object Model (DOM): It makes it possible to make modifications to the HTML and CSS code of the page in response to certain events. This is the case of websites that allow us to see how a page would appear on different devices.
Geolocation APIa: It is used to detect the user's location and respond accordingly. For example, it is used by Netflix to know what content you can see in your country or Google Maps to show you where you are.
Canvas and WebGL: They are ideal for plotting 2d and 3d graphics
Multimedia APIs: They allow the transmission and reception of multimedia content from a web page.
The different web services try to get more users (and in some cases more information from those users to sell it) That is why create programming interfaces so developers can integrate functionalities that these services provide to external sites. This is for example the case of those web pages that allow you to register with your Google or Facebook account.
First se loads the HTML code of the web page and an object model of the document is created so that it can be displayed in the browser. The items to be attached are then loaded to the page as media, images, and style sheets. Finally, the styles are assigned to the different parts of the page as determined by the style sheets.