the error is at this line
var row=table1.insertRow()because you have two tables whose id are "tt",
var table1=document.all.tt
returns the collection, try to change the id for one of the tables, or try
var row=table1[0].insertRow()also change
var arr=[a,b,c]
===>
var arr=['a','b','c']
var row=table1.insertRow()because you have two tables whose id are "tt",
var table1=document.all.tt
returns the collection, try to change the id for one of the tables, or try
var row=table1[0].insertRow()also change
var arr=[a,b,c]
===>
var arr=['a','b','c']
龟老大,多谢了。我只有一个TABLE,发贴时不小心贴了两个上去,哧哧。 qiushuiwuhen(秋水无恨) :
秋老板,谢谢你。高手就是高手,给分。