1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
12 window
.onload
= windowLoad
;
16 var newTable
= document
.createElement("table");
17 newTable
.id
= "newTable";
22 var newRow
= newTable
.insertRow(y
);
28 var newCell
= newRow
.insertCell(x
);
30 newCell
.appendChild(document
.createTextNode("r" + y
+ "c" + x
));
33 document
.body
.appendChild(newTable
);
40 var t
= document
.getElementById("newTable");
42 var cell
= t
.rows
[0].cells
[0];
44 cell
.firstChild
.nodeValue
= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
49 var t
= document
.getElementById("newTable");
51 var cell
= t
.rows
[0].cells
[0];
53 cell
.firstChild
.nodeValue
= "aa";
60 <input type=
"button" onclick=
"modify();" value=
"(1) Fill cell with long string"><br>
61 <input type=
"button" onclick=
"insert();" value=
"(2) Fill cell with short string"><br>