Javascript example

Below are form elements

An input text field followed by buttons:  

A password text field:     A menu with single selection:

Radio buttons:   selected menu index selected menu value selected menu text

A menu with multiple selections:    

A checkbox:       An hypertext anchor/link

A text area:

An hidden text field:

A reset button:   A submit button: