STAR Early College High School @ Erasmus
Internet Seminar: Creating Interactive Web Pages
Week 6 : Programming Web Pages to Respond to Button Clicks
Show and Tell
User-defined functions
Example 1 - sayittwice
Example 2 - makebold
Forms
Clicking buttons in a form
-
ex5 and
notes
(simple form with one button)
-
ex5a
(similar example with two buttons)
- ex6 and
notes
(using buttons to set background color)
- ex7
and notes
(using input box instead of prompt)
- ex8
and notes
(using input boxes and document.write to design a custom web page)
- ex9 and
notes
(uses a function)