Document Flashcards

1
Q

document.addEventListener()

A

Attaches an event handler to the document.

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

document.adoptNode(node)

A

Returns an adopted node from another document to this document.

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

document.anchors

A

Returns a collection of all the anchors in the document.

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

document.applets

A

Returns a collection of all the applets in the document.

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

document.baseURI

A

Returns the absolute base URI of a document.

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

document.body

A

Returns the body element of the document.

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

document.close()

A

Closes the output stream previously opened with document.open()

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

document.cookie

A

Returns all name/value pairs of cookies in the document.

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

document.createAttribute()

A

Creates an attribute node.

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

document.createComment()

A

Creates a Comment node with the specified text.

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

document.createDocumentFragment()

A

Creates an empty DocumentFragment node.

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

document.createElement()

A

Creates an Element node.

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

document.createTextNode()

A

Creates a Text node.

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

document.doctype

A

Returns the Document Type Declaration associated with the document.

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

document.documentElement

A

Returns the Document Element of the document (the HTML element).

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

document.documentMode

A

Returns the mode used by the browser to render the document.

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

document.documentURI

A

Sets or returns the location of the document.

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

document.domain

A

Returns the domain name of the server that loaded the document.

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

document.domConfig

A

Returns the configuration used when normalizeDocument() is invoked.

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

document.embeds

A

Returns a collection of all the embeds in the document.

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

document.forms

A

Returns a collection of all the forms in the document.

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

document.getElementById()

A

Returns the element that has the ID attribute with the specified value.

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

document.getElementsByClassName()

A

Returns a NodeList containing all elements with the specified class name.

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

document.getElementsByName()

A

Accesses all elements with a specified name.

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

document.getElementsByTagName()

A

Returns a NodeList containing all elements with the specified tagname.

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

document.head

A

Returns the head element of the document.

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

document.images

A

Returns a collection of all the images in the document.

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

document.implementation

A

Returns the DOMImplementation object that handles this document.

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

document.ImportNode()

A

Imports a node from another document.

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

document.InputEncoding

A

Returns the encoding, character set, used for the document.

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

document.lastModified

A

Returns the date and time the document was last modified.

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

document.links

A

Returns a collection of all the links in the document.

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

document.normalize()

A

Removes empty Text nodes, and joins adjacent nodes.

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

document.normalizeDocument()

A

Removes empty Text nodes, and joins adjacent nodes.

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

document.open()

A

Opens an HTML output stream to collect output from document.write()

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

document.querySelector()

A

Returns the first element that matches a specified CSS selector(s) in the document.

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

document.querySelectorAll()

A

Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.

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

document.readyState

A

Returns the (loading) status of the document.

39
Q

document.referrer

A

Returns the URL of the document that loaded the current document.

40
Q

document.removeEventListener()

A

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

41
Q

document.renameNode()

A

Renames the specified node.

42
Q

document.scripts

A

Returns a collection of all the scripts in the document.

43
Q

document.strictErrorChecking

A

Sets or returns whether error-checking is enforced or not.

44
Q

document.title

A

Sets or returns the title of the document

45
Q

document.URL

A

Returns the full URL of the document.

46
Q

document.write()

A

Writes HTML expressions or JavaScript code to a document.

47
Q

document.writeIn()

A

Same as write(), but adds a newline character after each statement.

48
Q

Attaches an event handler to the document.

A

document.addEventListener()

49
Q

Returns an adopted node from another document to this document.

A

document.adoptNode(node)

50
Q

Returns a collection of all the anchors in the document.

A

document.anchors

51
Q

Returns a collection of all the applets in the document.

A

document.applets

52
Q

Returns the absolute base URI of a document.

A

document.baseURI

53
Q

Returns the body element of the document.

A

document.body

54
Q

Closes the output stream previously opened with document.open()

A

document.close()

55
Q

Returns all name/value pairs of cookies in the document.

A

document.cookie

56
Q

Creates an attribute node.

A

document.createAttribute()

57
Q

Creates a Comment node with the specified text.

A

document.createComment()

58
Q

Creates an empty DocumentFragment node.

A

document.createDocumentFragment()

59
Q

Creates an Element node.

A

document.createElement()

60
Q

Creates a Text node.

A

document.createTextNode()

61
Q

Returns the Document Type Declaration associated with the document.

A

document.doctype

62
Q

Returns the Document Element of the document (the HTML element).

A

document.documentElement

63
Q

Returns the mode used by the browser to render the document.

A

document.documentMode

64
Q

Sets or returns the location of the document.

A

document.documentURI

65
Q

Returns the domain name of the server that loaded the document.

A

document.domain

66
Q

Returns the configuration used when normalizeDocument() is invoked.

A

document.domConfig

67
Q

Returns a collection of all the embeds in the document.

A

document.embeds

68
Q

Returns a collection of all the forms in the document.

A

document.forms

69
Q

Returns the element that has the ID attribute with the specified value.

A

document.getElementById()

70
Q

Returns a NodeList containing all elements with the specified class name.

A

document.getElementsByClassName()

71
Q

Accesses all elements with a specified name.

A

document.getElementsByName()

72
Q

Returns a NodeList containing all elements with the specified tagname.

A

document.getElementsByTagName()

73
Q

Returns the head element of the document.

A

document.head

74
Q

Returns a collection of all the images in the document.

A

document.images

75
Q

Returns the DOMImplementation object that handles this document.

A

document.implementation

76
Q

Imports a node from another document.

A

document.ImportNode()

77
Q

Returns the encoding, character set, used for the document.

A

document.InputEncoding

78
Q

Returns the date and time the document was last modified.

A

document.lastModified

79
Q

Returns a collection of all the links in the document.

A

document.links

80
Q

Removes empty Text nodes, and joins adjacent nodes.

A

document.normalize()

81
Q

Removes empty Text nodes, and joins adjacent nodes.

A

document.normalizeDocument()

82
Q

Opens an HTML output stream to collect output from document.write()

A

document.open()

83
Q

Returns the first element that matches a specified CSS selector(s) in the document.

A

document.querySelector()

84
Q

Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.

A

document.querySelectorAll()

85
Q

Returns the (loading) status of the document.

A

document.readyState

86
Q

Returns the URL of the document that loaded the current document.

A

document.referrer

87
Q

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

A

document.removeEventListener()

88
Q

Renames the specified node.

A

document.renameNode()

89
Q

Returns a collection of all the scripts in the document.

A

document.scripts

90
Q

Sets or returns whether error-checking is enforced or not.

A

document.strictErrorChecking

91
Q

Sets or returns the title of the document

A

document.title

92
Q

Returns the full URL of the document.

A

document.URL

93
Q

Writes HTML expressions or JavaScript code to a document.

A

document.write()

94
Q

Same as write(), but adds a newline character after each statement.

A

document.writeIn()