<script>
var arrList = new Array(1000);
for(i=0;i<arrList.length;i++){
arrList= "arrList["+i+"]";
}
function test1()
{
var d=new Date();
var sTmp = '';
sTmp += '<table>';
for(i=0;i<arrList.length;i++){
sTmp += '<tr><td>'+i+'</td><td>'+arrList+'</td></tr>';
}
sTmp += '<table>';
testT.innerHTML = sTmp;
alert(new Date()-d);
}
function test2()
{
var d=new Date()
var sTmp = new Array();
for(i=0;i<arrList.length;i++){
sTmp= '<tr><td>'+i+'</td><TD>'+arrList+'</TD></tr>' ;
}
testT.innerHTML = '<table>'+sTmp.join("")+'</table>';
alert(new Date()-d)
}
</script>
<input type="button" name="Button2" value="test1" onClick="test1()">
<input type="button" name="Button3" value="join" onClick="test2()">
<div id="testT"></div>