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 16:00, local time: 2025/4/30 18:18,
13.58.156.237: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? <A HREF="http://www.piclist.com/techref/language/java/script/definitive/ch08_08.htm"> [Chapter 8] 8.8 Built-in Arrays</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.