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.
file: /Techref/language/JAVA/script/definitive/ch08_08.htm, 3KB, , updated: 2019/10/14 15:00, local time: 2024/12/11 15:18,
3.135.209.154:LOG IN
|
©2024 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? <A HREF="http://techref.massmind.org/Techref/language/JAVA/script/definitive/ch08_08.htm"> [Chapter 8] 8.8 Built-in Arrays</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.