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
document.getElementsByTagName()
Returns a NodeList containing all elements with the specified tagname.
26
document.head
Returns the head element of the document.
27
document.images
Returns a collection of all the images in the document.
28
document.implementation
Returns the DOMImplementation object that handles this document.
29
document.ImportNode()
Imports a node from another document.
30
document.InputEncoding
Returns the encoding, character set, used for the document.
31
document.lastModified
Returns the date and time the document was last modified.
32
document.links
Returns a collection of all the links in the document.
33
document.normalize()
Removes empty Text nodes, and joins adjacent nodes.
34
document.normalizeDocument()
Removes empty Text nodes, and joins adjacent nodes.
35
document.open()
Opens an HTML output stream to collect output from document.write()
36
document.querySelector()
Returns the first element that matches a specified CSS selector(s) in the document.
37
document.querySelectorAll()
Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.
38
document.readyState
Returns the (loading) status of the document.
39
document.referrer
Returns the URL of the document that loaded the current document.
40
document.removeEventListener()
Removes an event handler from the document (that has been attached with the addEventListener() method).
41
document.renameNode()
Renames the specified node.
42
document.scripts
Returns a collection of all the scripts in the document.
43
document.strictErrorChecking
Sets or returns whether error-checking is enforced or not.
44
document.title
Sets or returns the title of the document
45
document.URL
Returns the full URL of the document.
46
document.write()
Writes HTML expressions or JavaScript code to a document.
47
document.writeIn()
Same as write(), but adds a newline character after each statement.
48
Attaches an event handler to the document.
document.addEventListener()
49
Returns an adopted node from another document to this document.
document.adoptNode(node)
50
Returns a collection of all the anchors in the document.
document.anchors
51
Returns a collection of all the applets in the document.
document.applets
52
Returns the absolute base URI of a document.
document.baseURI
53
Returns the body element of the document.
document.body
54
Closes the output stream previously opened with document.open()
document.close()
55
Returns all name/value pairs of cookies in the document.
document.cookie
56
Creates an attribute node.
document.createAttribute()
57
Creates a Comment node with the specified text.
document.createComment()
58
Creates an empty DocumentFragment node.
document.createDocumentFragment()
59
Creates an Element node.
document.createElement()
60
Creates a Text node.
document.createTextNode()
61
Returns the Document Type Declaration associated with the document.
document.doctype
62
Returns the Document Element of the document (the HTML element).
document.documentElement
63
Returns the mode used by the browser to render the document.
document.documentMode
64
Sets or returns the location of the document.
document.documentURI
65
Returns the domain name of the server that loaded the document.
document.domain
66
Returns the configuration used when normalizeDocument() is invoked.
document.domConfig
67
Returns a collection of all the embeds in the document.
document.embeds
68
Returns a collection of all the forms in the document.
document.forms
69
Returns the element that has the ID attribute with the specified value.
document.getElementById()
70
Returns a NodeList containing all elements with the specified class name.
document.getElementsByClassName()
71
Accesses all elements with a specified name.
document.getElementsByName()
72
Returns a NodeList containing all elements with the specified tagname.
document.getElementsByTagName()
73
Returns the head element of the document.
document.head
74
Returns a collection of all the images in the document.
document.images
75
Returns the DOMImplementation object that handles this document.
document.implementation
76
Imports a node from another document.
document.ImportNode()
77
Returns the encoding, character set, used for the document.
document.InputEncoding
78
Returns the date and time the document was last modified.
document.lastModified
79
Returns a collection of all the links in the document.
document.links
80
Removes empty Text nodes, and joins adjacent nodes.
document.normalize()
81
Removes empty Text nodes, and joins adjacent nodes.
document.normalizeDocument()
82
Opens an HTML output stream to collect output from document.write()
document.open()
83
Returns the first element that matches a specified CSS selector(s) in the document.
document.querySelector()
84
Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.
document.querySelectorAll()
85
Returns the (loading) status of the document.
document.readyState
86
Returns the URL of the document that loaded the current document.
document.referrer
87
Removes an event handler from the document (that has been attached with the addEventListener() method).
document.removeEventListener()
88
Renames the specified node.
document.renameNode()
89
Returns a collection of all the scripts in the document.
document.scripts
90
Sets or returns whether error-checking is enforced or not.
document.strictErrorChecking
91
Sets or returns the title of the document
document.title
92
Returns the full URL of the document.
document.URL
93
Writes HTML expressions or JavaScript code to a document.
document.write()
94
Same as write(), but adds a newline character after each statement.
document.writeIn()