Class 4 — CSS drop down menus
— HTML form elements

CSS drop down menus

Create sub-menus with Javascript

This section is not discussed until we have completed Javascript but is here for comparison with the previous examples.

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.
Sub-menus with Javascript

HTML form elements

Form element detail. Forms use Javascript to read and process the fields before submission to the host site.