![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
can you pop/push arrays in javascript?
Can you pop and push values to and from arrays in javascript?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
Version 5.5 of Micosoft JScript adds these methods to the array object... not sure if they are available on current Client Side Javascript implementations
arrayObj.pop( ) arrayObj.push([item1 [item2 [. . . [itemN ]]]]) since its an implementation of the ECMA 262 language you might expect it to appear on the most recent browsers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
Thanks. So I guess I can't do it in JS 1.0 to 1.2.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
CSJS reference for array object
http://developer.netscape.com/docs/m...sref/array.htm certainly has pop and push methods for CSJS v1.2 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
Excellent, I'll check it out. Thanks.
|
![]() |
![]() ![]() ![]() ![]() ![]() |