| Basic Concepts |
| |
What is JavaScript
Uses of JavaScript
Inserting code into an HTML page
Creating a simple script |
|
| Syntax essentials |
| |
Case sensitivity
Use of semicolons
Adding comments
White space
Strings and variables
The use of functions
Naming conventions
Reserved words |
|
| Programming structure |
| |
Declaring
variables
Assigning values to variables
Arithmetic operators
Comparison operators
If - else statements
Switch statements
For loops
While loops
Declaring functions
Calling functions
Built-in functions
Using arrays
|
|
| Pop-up message
boxes |
| |
Alert
boxes
Confirm boxes
Prompt boxes
Capturing user input |
|
| Objects, DOM and
events |
| |
Properties
and methods
Creating objects
The String object
The Date object
The document object model
The navigator object
The document object
What are events
Creating event handlers
Mouse events
Events used with forms
onLoad and onUnload
Navigator and IE differences |
|
| Browser detection |
| |
Practical
uses of browser detection
Navigator object properties
Detecting the browser
Detecting the version
Detecting the platform
Using browser information |
|
| Rollover effects |
| |
Naming
images
Swapping images on rollover
Restoring the original image
Swapping more than one image
Preloading images |
|
| Form validation |
| |
The
form object
Form elements
Preventing empty fields
Checking for email addresses
Counting digits
Checking for numeric values
Restricting the range of values |
|
| Pop-up windows |
| |
Elements
of windows
Opening a window
Closing a window
Specifying window attributes |
|