July 1998
Intermediate to advanced
1456 pages
65h 5m
English
NAME — NN 3 IE 4 HTML n/a
NAME=”elementIdentifier"Optional
If you are scripting an image (especially swapping precached images),
it is usually more convenient to create a reference to the
IMG element by using a unique name you assign to
the item. Thus, if you edit the page and move or delete multiple
IMG elements on the page, you do not have to worry
about adjusting index values to array-style references
(document.images[i]).
<IMG NAME="mugshot" SRC="janem.jpg" HEIGHT=90 WIDTH=80>
Case-sensitive identifier.
None.
[window.]document.images[i].name
[window.]document.imageName.name
[window.]document.images[i].name
[window.]document.imageName.name
Read now
Unlock full access