C
CES
All,
Sorry for the 101 question but I can't figure out how to return all of the
contents of an array to another function. I been able to figure out how to
return individual elements of the array like "return newArray[3]" would
return the value of value4 in the code below but not the complete array.
<html>
<head>
<title></title>
<script language="javascript">
function tmp(){
var newArray = new Array("value1","value2","value3","value4");
return newArray????;
}
function test(){
document.write(tmp())
}
</script>
</head>
<body onload="test()">
</body>
</html>
Any guidance will be appreciated.
CES
Sorry for the 101 question but I can't figure out how to return all of the
contents of an array to another function. I been able to figure out how to
return individual elements of the array like "return newArray[3]" would
return the value of value4 in the code below but not the complete array.
<html>
<head>
<title></title>
<script language="javascript">
function tmp(){
var newArray = new Array("value1","value2","value3","value4");
return newArray????;
}
function test(){
document.write(tmp())
}
</script>
</head>
<body onload="test()">
</body>
</html>
Any guidance will be appreciated.
CES