JavaScript: The Definitive Guide

Previous Chapter 8
Arrays
Next

8.8 Built-in Arrays

As we'll see later in this book, client-side JavaScript has quite a few built-in arrays. For example, the elements[] array of the Form object contains references to the buttons, input fields, and other input elements of an HTML form in a web document. JavaScript provides a length property for these built-in arrays in both Navigator 2.0 and Navigator 3.0. It is only user-defined arrays that lack the length property in Navigator 2.0.

Certain built-in arrays may also have special behavior. For example, in Navigator 3.0, the options[] array of the Select object (an HTML form element) allows you to delete an element simply by setting it to null. This is special-case behavior implemented only for this particular array, and is not a general property of arrays. This kind of behavior is documented on a case-by-case basis in this book.


Arrays in Navigator 2.0 Array Summary


file: /Techref/language/java/script/definitive/ch08_08.htm, 3KB, , updated: 2019年10月14日 16:00, local time: 2025年9月16日 21:13,
40.74.122.252:LOG IN

©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/language/java/script/definitive/ch08_08.htm"> [Chapter 8] 8.8 Built-in Arrays</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here:
if you want a response, please enter your email address:
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

Welcome to massmind.org!

Welcome to techref.massmind.org!

.

AltStyle によって変換されたページ (->オリジナル) /