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
- An example that just has buttons,
ex3
- This example has many buttons, ex4 and
notes
(using buttons to set background color)
- An example with a text box and a button,
ex5 and
notes
- Using two text boxes and a button to design a custom web page
ex6
- This example combines textboxes, a button and a function,
ex7 and
notes