<html>
<head>
<script type="text/javascript">
function changeContent(){
var x=document.getElementById('myTable').rows
var y=x[0].cells
y[0].innerHTML="NEW CONTENT"
}
</script>
</head>
<body>
<table id="myTable" border="1">
<tr>
<td>d</td>
<td>d</td>
</tr>
<tr>
<td>d</td>
<td>d</td>
</tr>
</table>
<form>
<input type="button" onclick="changeContent()" value="Change content">
</form>
</body>
</html>
|