JavaScript
All you need to know about JavaScript you can find
in Netscape's JavaScript guide.
Here are some examples from class:
- Changing the background colors (basic assignment, document.bgColor, onClick).
- A more interesting version of changing the background color (basic assignment, naming of fields).
- Changing the status bar (basic assignment, window.status, onMouseOver).
- Computing the full name (string
concatenation, naming HTML elements).
- Computing the square root
(arithmetical operations).
The following examples use self-defined functions.
- Computing the square without and with
a self-defined function.
- Using conditionals to verify the validity of the input for division.
- With the tools we have at this point image roll-over is
really Simple.
Some more about objects:
Final programs:
cookies.js