Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Array::popNetscape Only Feature


Array.pop()
 
The pop method is used to remove and return the last element of an array. This affects the length of the array. The following example creates an array called 'cars' with the listed elements, and the pop method then removes and returns the last element "chrysler" leaving just the two elements "Mercedes" and "Ford" in the array:
 
Code:
cars = ["Mercedes", "Ford", "Chrysler"]
document.write(cars.pop())

 
Output:
Chrysler

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information