Level 6
Level 8
16 words 0 ignored
Ready to learn
Ready to review
Ignore words
Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.
Ignore?
Built-in objects
values that are common to a browser
print or display functions
JavaScript does NOT have any built-in _______
window.alert(), document.write(), innerHTML, console.log()
JavaScript can "display" data in different ways:
window
In web browsers, the global context is said to be that of the _______ object.
window object
The on load event operates on which element of the DOM?
window.alert()
the _______ methods use an alert box to display data
window.alert("This displays in an alert box);
an example of Alert box syntax
document.write()
For testing purposes, it is convenient to use document.write():
id attribute
The _______ defines the HTML element
document.getElementById(id);
How do you access a page element by id?
innerHTML
The _______ property can be used to retrieve the HTML text inside of the node, without the tags for the node itself.
document.getElementById(id)`
To access an HTML element from JavaScript, you can use the _______ method
element.innerHTML=
Change the inner HTML of an element
access the "ID" element and defines its content
what does "document.getElementById("ID").innerHTML" do?
sets element "ID" content to "New content"
<p id="ID"></p> <script> document.getElementById("ID").innerHTML = "New Content"; </script>
console.log()
the interpreter doesn't print everything it does. ___ makes to interpreter do so.