I have any array called query[]
I am opening a new window with:
window.open(\"http://localhost:8081/myapp/Query.action\",\"mywindow\",\"me
You can also pass it on the URL as well, for example:
window.open("http://localhost:8081/myapp/Query.action?arr=" + query.join(","), "mywindow", ...
This will pass it as comma separated list that can be read in the target page.
You can't "pass" the array, but you can make it available as a global (or via a global), and your new page can use something like:
var theArray = window.opener.theArray;
to get access to it.
Alternatively, you could pass the array through as a list of parameters, but if it's not otherwise interesting to the server then that would be a little wasteful.