Microsoft® JScript™
splice Method (Array)
 Language Reference 
Version 3 

See Also                  Applies To


Description
Deletes elements of an array.
Syntax
arrayObj.splice(start [,length] [,elements])

The splice method syntax has these parts:

Part Description
arrayObj Required. An Array object.
start Required. The zero-based index of the beginning of the specified portion of arrayObj.
length Optional. The number of elements to remove from arrayObj. If not specified, every element starting from the given index will be removed from the array
elements Optional. Requires length. List of elements to insert at the start.

Remarks
The splice method modifies an Array object by removing the specified portion of arrayObj or adding elements.


© 1997 by Microsoft Corporation. All rights reserved.