Thanx for the tip, DarkMan. The session variable works for passing the array to the next page, however I still have the problem of passing the array to a function, could you have a look at the following code and see how to pass the array? An error messages comes up that "session" is not found.<br><br>Thanx for all your help<br><br><cfset session.my=ArrayNew(1)><br><INPUT type="button" value="Add to List" onclick="f_store(document.history.command.value, session.my)"><br><br><---Function ---><br>var index = 0;<br>var cmmnd = 1;<br>function f_store( sTR, history ) {<br>var i;<br>if( index >= history.length ) {<br>for( i = 1; i < history.length; i++ )<br>history[i-1] = history<i>;<br>index = history.length - 1;<br>}<br>history[ index ] = cmmnd + ":" + sTR;<br>++cmmnd;<br>++index;<br>document.history.command.value="";<br>}