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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is DOM element?

A

A DOM element is an html element represented as an object an object in the DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly