If you want to see what value a user has typed into the text field named
the_age_field (❷) in Figure 7-12, use this:
window, locate its
document, find the form called
my_form inside the
document, find the form element called
the_age_field inside that form, and read its value. Figure 7-16 shows how to build a simple calculator using form elements as inputs.
Figure 7-16. A very simple calculator ...