+ 8
I'm confused by DOM.
8 Réponses
+ 12
DOM is basically the structure of the webpage. The Document Object Model is an API, which you can think of as a structure that consists of all that is the webpage and how they're structured. It is best represented by a flowchart.
+ 10
It stands for document object model. It basically describes the complete hierarchy of the document object and all its properties.
+ 8
You can make an image of DOM as a tree: root, then branches at the same level, then branches that are children of previous branches etc. After that you can reference to some elements of the page in the next way: root>body>child(or siblibg)... using some of DOM APIs. I hope this will help you at least a little.
+ 3
The Document Object Model (DOM) is a programming interface for HTML and XML documents. It provides a structured representation of the document and it defines a way that the structure can be accessed from programs so that they can change the document structure, style and content. The DOM provides a representation of the document as a structured group of nodes and objects that have properties and methods. Essentially, it connects web pages to scripts or programming languages.
+ 2
you can take some vídeos on YouTube, and pratice with some exercises
+ 2
same problem here
+ 2
DOM is a logical structure of Web page .
when Web page loads on browser on that moment browser creates the document object model of the Web page .. It means javascript get all the power of creation , updating and deletion actions on HTML content , tags etc .
DOM is refer by document in javascript code .
For example .
var id= document.getElimentById ("your_id");
In this statement we will get the Id from the page and store it into Id variable..
0
You can use jQuery library . It's more easily that javascript DOM manipulation.