Example with interactive objects

Here you see some objects with some properties and methods. The properties are most ascii-textstrings. If you use the button with the function 'click...' the outcome of the rules were displayed. There are tree sweaters (truitjes). The properties are 'programmed' in the source. The 4 property of the sweater (truitjes) is calculated and the value is put in this.prijs.

The objects are defined in the Html source.

and the method somewhere in top of the html-file:

Resultaat:

Truitje A:
Truitje B:
Truitje C:
Truitje D:

Je ziet in het formulier vier velden met van elk truitje: het materiaal, de kleur, de maat en de prijs (in florijnen) op één rij.