JavaScript III

User-defined functions

  • Example 1 - sayittwice, the source code is given here.
  • Example 2 - makebold, the source code for the example is shown here.
  • Event-driven programming

    Moving the mouse over a link

    The way a web page is displayed can be changed by using two event handlers onMouseOver and onMouseOut that respond to a user moving the computer mouse.

    Clicking buttons