Let's say I predefine some arrays.
Just making the above up.Code:var orange = new Array('orange','fruit','round','peel'); var apple = new Array('apple','fruit','odd','skin'); function whicharray(arrayiwant){ ? }
But let's say I want to access one of these with a link.
How can I carry over which array I'm looking for and access that array? When I call it from that function, it just returns orange as a string, I'm not sure how to tell it I want that array.HTML Code:<a href="#" onclick="javascript:whicharray('orange');">something</a>







Bookmarks