javascript and DOM Flashcards

1
Q

DOM stands for?

A

document object model

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

what function overwrites contents of loaded page

A

.writeln()

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

___ JavaScript can be invalid XML

A

Inline. space after “

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

how can you hide a code from XML without using the comment blocks?

A

use CDATA

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

What is DOM used for?

A

it applies to parsed HTML and XML content in DOM systems

defines objects and interfaces to access and manipulate it

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

DOM 0 can address form controls using which attributes?

A

name

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

what does eval() do?

A

eval() computes expression’s value and result replaces it

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

what does onmouseover and onmouseout do?

A

onmouseover is when your mouse is hovering over that element it will then perform an action and onmouseout is when the mouse is no longer hovering over the element, how it would react.

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

what is Nodes in DOM 1 hierarchy?

A
document whole HTML or XML document
element such as a table or tr
attribute of element such as class or id
text or CDATA
entity escape sequence like ♅ for symbol for uranus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is querySelector() and querySelectorAll()

A

querySelector() first node matching CSS selector argument. In querySelectorAll all the nodes matching CSS selector argument is chosen

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

which version of DOM only applies to HTML and doesn’t consider XML

A

DOM 0

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

which version of DOM views HTML components rendered in window as a hierarchy

A

DOM 0

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