JavaScript

50 cards   |   Total Attempts: 182
  

Related Topics

Cards In This Set

Front Back
Scripts can be placed in the_____, or in the ______ section of an HTML page, or _____.
<body> <head> in both
It is a good idea to place scripts at the _____ of the <body> element.
This can improve page load, because HTML display is not blocked by scripts loading.
Bottom
Scripts can also be placed in _____ files.
External
JavaScript files have the file extension _____.
.js
To use an external script, put the name of the script file in the _____ attribute of the <script> tag
Src (source)
External scripts cannot contain _____ tags.
<script>
You can place an external script reference in <head> or as _____ you like
<body>
JavaScript does NOT have any built-in _____ or display functions.
Print
Writing into an alert box using
window.alert()
Writing into the HTML output using
document.write()
Writing into an HTML element, using
innerHTML
Writing into the browser console, using
console.log()
Using document.write() after an HTML document is fully loaded, will _____. The document.write() method should be used only for testing.
delete all existing HTML
To "display data" in HTML, (in most cases) you will set the value of an _____ property.
InnerHTML
Activate the browser console with _____, and select "Console" in the menu.
F12