Page does not exist.
Missing Page
Sorry. The page that you requested does not exist on the Department of Computer Science web site.
[an error occurred while processing this directive]
File: index.shtml
Creator: George Ferguson
Created: Tue Nov 13 19:31:40 2012
Time-stamp: Sorry. The page that you requested does not exist on the Department of Computer Science web site.
On to Part 2 when it is available...
Last update: Thursday, 15-Nov-2012 13:40:41 EST
Page does not exist.
Missing Page
[an error occurred while processing this directive]
CSC170: Introduction to Programming and the Web
For each of the following questions, start with the example document
linked here: dom-example.html. You can
of course also experiment with other documents as you explore the DOM.
Fall 2012
[an error occurred while processing this directive]
Assignment 9: DOM and Events
display
CSS property
(and corresponding property of the
element's style
object) for how to make it
disappear.
style
object's color
property to that color.
Things to think about
getElementById
returns a single element
(or undefined
). getElementsByTagName
and getElementsByClassName
return (possibly empty)
collections of elements (technically, these
are NodeList
objects).
getElementsByTagName
and getElementsByClassName
.
style
property to change the element's appearance. The properties of
a style
object are the CSS properties, with the names
adjusted to use Javascript identifiers (i.e., CamelCase rather
than hyphens).
body
element. Very soon we'll learn how to
trigger behaviors from mouse clicks and other events.