First DHTML Example

We will modify this document to dynamically convert the header to small caps when the link is clicked. Recall the steps in setting up a dynamic effect:

  1. Decide on effect and trigger event.
  2. The chosen trigger event calls a function written to carry out the dynamic effect.
  3. The function must locate the appropriate object or objects within the Document Object Model.
  4. It then modifies the appropriate properties of the object to produce the desired effect.