Splice an Array : Array « Javascript Objects « JavaScript DHTML






Splice an Array

    
<html>
<body>
<button onclick="var myA = new Array(10,11,12,13,14,15); alert(myA.splice(1,3));">
Array splice
</button>
</body>
</html>

    
      
      








Related examples in the same category

1.Concatenate Array with another Array
2.Array join()
3.Pop an element from Array
4.Unshift array
5.Convert Array to String
6.To Array Source
7.Sort an Array
8.shift an Array
9.Reverse an Array