
I'm trying to change the background image of a cell with a button click and add text within the cell. I'm not to familiar with innerTEXT or how to do this. Here is the code I have:
<html>
<head>
<script language=javascript>
function textCHK() {
if (document.form1.text1.value == 'change') {
}
}
</script>
</head>
<body>
<form name="form1">
<table border>
<tr>
<td align="center">
<input type="text" id="text1"><br>
<input type="button" value="Change Table" onClick="textCHK()">
</td>
</tr>
<tr>
<td height="12" width="230" id="cell1">
</td>
</tr>
</table>
</form>
</body>
</html>