Class 8 — Javascript

Web console

Under tools select "Web console", then you can see the output of the function console.log(message_string).

You also get some syntactic error messages, which can be more helpful then JSLint when loading a web page.

Class exercise

Develop interactively a multiplication table. A solution HTML file   Javascript file   CSS file

Conclude Javascript

Web console

Under tools select "Web console", then you can see the output of the function console.log(message_string).

You also get some syntactic error messages, which can be more helpful then JSLint when loading a web page.

Sub-menus controlled with Javascript

Will not do in class. Gets too complicated with Javascript, as the purpose of the course is to get an overview of the main concepts. This is here for those people who may be interested.

Sub-menu with Javascript is here.
The example shows the use of mouse actions to call Javascript functions to make menus visible and invisible. The length of time a menu is displayed is controlled by a timer. Can create sub-sub-menus but the Javascript becomes complex as you have to not hide parent menus, but the current version does hide parent menus.