array.push()
Auteur: haytjes - 15 januari 2006 - 15:22 - Gekeurd door: nemesiskoen - Hits: 4407 - Aantal punten: (0 stemmen)
arr.push() is maar beschikbaar vanaf IE 5.5+. Door deze functie kan je arr.push() in eerdere versies van IE gebruiken.
voorbeeld:
<script>
arr = Array("value1","value2","value3");
arr.push("value4");
// arr = Array("value1","value2","value3","value4");
</script>
<script> arr = Array("value1","value2","value3"); arr.push("value4"); // arr = Array("value1","value2","value3","value4"); </script>
[edit]
werkt nu ook met meerdere argumenten:
<script>
arr = Array("value1","value2","value3");
arr.push("value4","value5");
// arr = Array("value1","value2","value3","value4","value5");
</script>
<script> arr = Array("value1","value2","value3"); arr.push("value4","value5"); // arr = Array("value1","value2","value3","value4","value5"); </script>
|