Introduction to JavaScript
- Generating text, with selected style and explicite line breaks
- Creating alerts and interactive dialogs/prompts
- Numeric data processing
- Examples of relational operators
- Loops
while
and initializing values in a dialog
- Conditional statement
if ... else ...
- Examples of using arithmetic operations
- Loops
while
, for
and do ... while
and escaping them with instructions break
and continue
(also with nested loops: break
and continue
)
- Examples: sum and compound interest
- Choice instruction
switch
- Logic operators
- Defining new functions: squaring a number and finding the maximum of three numbers
- Generating pseudo-random numbers, rolling a dice, a simple random game and random picture selection on a page
- Global and local variables
- An example of a recursive function
- Arrays: declaration, initialization, summing, applications: rolling a dice and random pictures
- Arrays and functions
- Sorting array data
- Multi-dimensional arrays
- An example of an interactive questionnaire
- Character data, searching in text strings and tokenizing text
- Generating xHTML code text
- Date and time functions
- Creating dynamic child windows
- Using
cookies
- An example of a multi-window application
- DOM (Document Object Model)
- Using DOM: dynamic style creation, link lists, changeable background color, dynamic image loading
- Handling events
- Event
onLoad
- Interactive drawing
- Events
onMouseOver/onMouseOut
- Events
onFocus/onBlur
- Events
onSubmit/onReset
- Event propagation mechanism
Source: Ajax, Rich Internet Applications and Web Development for Programmers