Java Script Flashcards
(4 cards)
1
Q
What is the DOM?
A
The DOM (document object model) is a tree-like structrue the browswer uses to represent a web page.
2
Q
What is DOM element?
A
A DOM element is an html element represented as an object an object in the DOM
3
Q
What is a DOM event?
A
A DOM event is an action or occurrence that happens in the browser which the system can detect or respond to.
4
Q
What is the difference between getElementByClass and getElementById?
A
getElementByClass returns an array of elements with a specific class attribute. While get elment by id returns one element with a specific Id attrubute.