Every image on a web page, for instance, is stored, in order of their appearance in the HTML code, in the
images array; the first IMG on the HTML page is stored in
images, the second IMG on the HTML page is stored in
images, etc. You can affect the images on an HTML page by accessing their image object instances via this array (there are also other, more direct means, as well). Countless other HTML elements are stored in a similar manner.
In the next section, we are going to look at a FORM, and access elements in the form using dot syntax and array syntax; we will do this in order to extract the user's selected choice from a form pulldown menu.
Copyright © 2001 Michael Masumoto. All Rights Reserved.