<script language="javascript">
function addRow()
{
var myTable = document.getElementById("myTable");
var j=myTable.rows.length;
var row = myTable.insertRow();
var cell1 = row.insertCell() ;
var text1 = document.createElement("input");
text1.type = "button";
text1.name = "buttonC"+j;
text1.value = "选择";
text1.onclick = Function("return selectFromParaList('a','b')");
cell1.appendChild(text1);
}
function selectFromParaList(a,b)
{
alert(a+b);
}
</script>
<input type="button" onclick="addRow()" value="addRow">
<table id="myTable" border=1>
</table>