All about DOM.
Dec 29, 2021
Every web page has a Document Object Model (DOM) of the page.
An overview of the DOM model:-
With the help of DOM, javascript becomes more powerful and it helps to create dynamic HTML:
- JavaScript can change all the HTML elements of the page.
- JavaScript can change all the HTML attributes on the page.
- JavaScript can change all the CSS styles in the page
- JavaScript can remove existing HTML elements and attributes.
- JavaScript can add new HTML elements and attributes
- JavaScript can react to all existing HTML events on the page.
- JavaScript can create new HTML events on the page.