mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
44 lines
979 B
HTML
44 lines
979 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
table { empty-cells: show; }
|
|
</style>
|
|
<script>
|
|
window.onload = function() {
|
|
var thetable = document.getElementById("thetable");
|
|
var input = document.getElementById("input");
|
|
thetable.rows[1].cells[2].appendChild(input);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<table border="1" id="thetable">
|
|
<thead>
|
|
<tr>
|
|
<th>col1</th>
|
|
<th>col2</th>
|
|
<th>col3</th>
|
|
<th>col4</th>
|
|
<th>col5</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="overflow-y:auto;overflow-x:hidden;">
|
|
<tr>
|
|
<td>val1</td>
|
|
<td><input maxlength="6" type="text" id="input" value="text" size="6" /></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>val2</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|