JavaScript Programmer’s Reference // Display an array in (Web hosting faq)

JavaScript Programmer’s Reference // Display an array in a table function displayArrayAsTable(anArray) { myLength = anArray.length; document.write(”

“); for(myIndex = 0; myIndex < myLength; myIndex++) { document.write("“); document.write(”“); } document.write(”
“); document.write(myIndex); document.write(”“); document.write(anArray[myIndex]); document.write(”


“) } See also: Array object, Array(), Array(), Array.concat(), Array.constructor, Array.join(), Array.length, Array.pop(), Array.push(), Array.reverse(), Array.shift(), Array.slice(), Array.sort(), Array.splice(), Array.toSource(), Array.toString(), Array.unshift(), prototype property Property attributes: ReadOnly, DontDelete, DontEnum. Cross-references: ECMA 262 edition 2 section 15.4.3.1 ECMA 262 edition 3 section 15.4.3.1 Array.push() (Method) Pushes items onto the end of an array like a FILO stack. ECMAScript edition 3 JavaScript 1.2 JScript 5.5 Internet Explorer 5.5 Netscape 4.0 Netscape Enterprise Server 3.0 Number primitive -myArray.push(someValue, …) someValue A series of values to be pushed onto the stack Availability: Property/method value type: JavaScript syntax: Argument list:
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services

Leave a Reply