View Single Post
Old Apr 26th, 2005, 8:12 PM   #1
zameroth
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 zameroth is on a distinguished road
Cell Manipulation

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>
zameroth is offline   Reply With Quote