DOM Objects Pt 2 Flashcards

1
Q

nodeValue

A

Sets or returns the value of a node

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

offsetHeight

A

Returns the height of an element, including padding, border and scrollbar

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

offsetWidth

A

Returns the width of an element, including padding, border and scrollbar

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

offsetLeft

A

Returns the horizontal offset position of an element

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

offsetParent

A

Returns the offset container of an element

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

offsetTop

A

Returns the vertical offset position of an element

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

outerHTML

A

Sets or returns the content of an element (including the start tag and the end tag)

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

outerText

A

Sets or returns the outer text content of a node and its descendants

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

ownerDocument

A

Returns the root element (document object) for an element

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

parentNode

A

Returns the parent node of an element

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

parentElement

A

Returns the parent element node of an element

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

previousSibling

A

Returns the previous node at the same node tree level

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

previousElementSibling

A

Returns the previous element at the same node tree level

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

remove()

A

Removes an element from the DOM

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

removeAttribute()

A

Removes an attribute from an element

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

removeAttributeNode()

A

Removes an attribute node, and returns the removed node

17
Q

removeChild()

A

Removes a child node from an element

18
Q

removeEventListener()

A

Removes an event handler that has been attached with the addEventListener() method

19
Q

replaceChild()

A

Replaces a child node in an element

20
Q

requestFullscreen()

A

Shows an element in fullscreen mode

21
Q

scrollHeight

A

Returns the entire height of an element, including padding

22
Q

scrollIntoView()

A

Scrolls the an element into the visible area of the browser window

23
Q

scrollLeft

A

Sets or returns the number of pixels an element’s content is scrolled horizontally

24
Q

scrollTop

A

Sets or returns the number of pixels an element’s content is scrolled vertically

25
scrollWidth
Returns the entire width of an element, including padding
26
setAttribute()
Sets or changes an attribute's value
27
setAttributeNode()
Sets or changes an attribute node
28
style
Sets or returns the value of the style attribute of an element
29
tabIndex
Sets or returns the value of the tabindex attribute of an element
30
tagName
Returns the tag name of an element
31
textContent
Sets or returns the textual content of a node and its descendants
32
toString()
Converts an element to a string