#2 JavaScript Tutorial | What is Dom? | Document Object Model




In this video tutorial of JavaScript fundamentals, we will study and understand the concept of Document Object Model also known as DOM.
Document Object Model(DOM) –
The Document Object Model (DOM) defines the logical structure of documents and the way a document is accessed and manipulated.
The name “Document Object Model” was chosen because it is an “object model” is used in the traditional object oriented design sense: documents are modeled using objects, and the model encompasses not only the structure of a document, but also the behavior of a document and the objects of which it is composed. In other words, the nodes in the above diagram do not represent a data structure, they represent objects, which have functions and identity.

With the document object model, JavaScript gets all the power it needs to create dynamic HTML:
1) JavaScript can change all the HTML elements in the page
2) JavaScript can change all the HTML attributes in the page
3) JavaScript can change all the CSS styles in the page
4) JavaScript can remove existing HTML elements and attributes
5) JavaScript can add new HTML elements and attributes
6) JavaScript can react to all existing HTML events in the page
7) JavaScript can create new HTML events in the page

Video by – Tanmay Sakpal
Simple Snippets Channel link – https://www.youtube.com/simplesnippets

Original source


40 responses to “#2 JavaScript Tutorial | What is Dom? | Document Object Model”

  1. Awesome Bhai you gave me an inspiration to start again i lost it completely but seriously you are great bhai ๐Ÿ‘ I will follow your tutorial to learn JavaScript later i will move to learn React JS then React Native. Thanks for creating this video tutorial

  2. I really wish this was also offered as a paid course! I'd take it just to support you. I'm taking a trash edX course just to earn a certificate but I keep resorting to your videos because your presentations are more clear and well structured. Thank you for your work, you're amazing Telusko!

Leave a Reply