HTML and CSS Reference
In-Depth Information
CHAPTER SUMMARY
This chapter introduced the use of JavaScript as a client-side scripting language in Web pages. You learned
how to embed script blocks in Web pages, display an alert message, use an event handler, and validate a
form.
Visit the textbook Web site at http://www.webdevfoundations.net for examples, the links listed in this
chapter, and updated information.
Key Terms
alert()
<script>
arithmetic operators
browser sniffing
case-sensitive
client-side processing
comments
comparison operators
concatentation
debug
document
events
event handler
form handling
function
if
image swapping
jump menus
keywords
methods
mouseover
null
object
object-based
onclick
onload
onmouseout
onmouseover
onsubmit
prompt()
reserved words
scripting language
server-side processing
var
variable
window object
write()
Review Questions
Multiple Choice
1. Which of the following is the document con-
sidered to be?
a. object
b. property
c. method
d. attribute
3. When the user moves the mouse pointer away
from a link it had been hovering over, the
browser detects which one of these events?
a. mouseoff
b. mouseout
c. mouseaway
d. mouseup
2. When the user positions the mouse pointer on
a link, the browser detects which one of these
events?
a. mouseon
b. mousehover
c. mouseover
d. mousedown
4. Which method of the window can be used to dis-
play a message to the user?
a. alert()
b. message()
c. status()
d. display()
565
 
Search WWH ::




Custom Search