<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>無題のページ</title>
<script>
function getValue() {
var x=document.getElementById("myHeader")
alert(x.innerHTML) }
function init() {
var tr, td,text1,text2,textnum,rbtsel;
var tbl=document.getElementById("tbl");
tr = document.createElement("tr");
tbl.insertBefore(tr, null);
var rowcount=0;
rowcount=document.getElementById("tbl") ;
var rows=rowcount.rows.length;
tdnum=document.createElement("td");
td1 = document.createElement("td");
td2 = document.createElement("td");
var txt1=document.getElementById("Text1").value;
var txt2=document.getElementById("Text2").value;
text1 = document.createTextNode(txt1);
text2 = document.createTextNode(txt2);
textnum=document.createTextNode(rows);
tdnum.insertBefore(textnum, null);
td1.insertBefore(text1, null);
td2.insertBefore(text2, null);
tr.insertBefore(tdnum, null);
tr.insertBefore(td1, null);
tr.insertBefore(td2, null);
}
</script>
</head>
<body >
<input type="text" id="Text1" />
<input type="text" id="Text2" />
<input type="button" οnclick="init()" name="t" />
<table id="tbl" >
</table>
</body>
</html>