Student
Menu. © Lesson 4. Printable layout. Links won't function in print.
Notes
Section
|
Main
Text
|
||
3.
Alerting Form |
Simple JavaScripts Reviewed.
|
||
Module 4.1
|
|||
Module 4.2 How do I create a Function? The Code:
|
|||
Module 4.3 builds upon Module 4.2 How can I use an Event Handler to call a Function? Each button below has a corresponding Parameter--a value like red, white, blue, green or yellow--that gets passed to the Function when the button is clicked (onClick). The Function then assigns the value to the word inside its parenthesis (color). Finally, the value held by the word color is assigned to the bgColor Property of the Document Object. The Code:
|
|||
Module 4.4 builds upon Module 4.2 How do I add two numbers? (FORM calculator) The Code:
|
|||
Module 4.5 builds upon Module 4.2 How do I alert the user? (FORM validator) The Code:
|
|||
Module 4.6 How do I create a simple image rollover that pops open a new browser window? The Code:
|
|||
Module
4.7 |
Conclusion.
|