You can an array to JavaScript function as an argument. In side of function you can handle this argument in any other programming language. Take a look on following example :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Array to Java Script Function : Girfa</title>
<script language="javascript">
function ardemo(ar)
{
for(i=0;i<ar.length;i++)
document.write("["
+ar[i] + "] ");
}
</script>
</head>