GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   can you pop/push arrays in javascript? (https://gfy.com/showthread.php?t=85132)

HQ 10-28-2002 01:17 PM

can you pop/push arrays in javascript?
 
Can you pop and push values to and from arrays in javascript?

bawdy 10-28-2002 01:24 PM

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

HQ 10-28-2002 02:37 PM

Thanks. So I guess I can't do it in JS 1.0 to 1.2.

bawdy 10-28-2002 02:48 PM

CSJS reference for array object

http://developer.netscape.com/docs/m...sref/array.htm


certainly has pop and push methods for CSJS v1.2

HQ 10-28-2002 03:34 PM

Excellent, I'll check it out. Thanks.


All times are GMT -7. The time now is 07:54 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123