C
cuco
I want to use the parameter of a function as a variable for an array.
Example:
<html>
<head>
my function (parameter){
x=new Array(parameter);
// rest of the code using x
}
</head>
<body>
<script language="javascript">my function(" ' item1' , ' item2' , '
item3' ")</script>
</body>
</html>
It's not working.
Example:
<html>
<head>
my function (parameter){
x=new Array(parameter);
// rest of the code using x
}
</head>
<body>
<script language="javascript">my function(" ' item1' , ' item2' , '
item3' ")</script>
</body>
</html>
It's not working.