I was wondering if any of you could help me on this little diversion I've had lately. What I want to do is obtain the ability to change the background of a cell with an onclick. I've tried this...
Code:
<html>
<head>
<title>Test 3</title>
</head>
<body>
<table width="450" height="125">
<tr>
<td bgcolor="#555555" name="test_cell"></td>
</tr>
</table>
<a href="#" onclick="document.test_cell.bgcolor='#587DA7';">ONE</a>
</body>
</html>
Along with several other variants. However it claims that "document.test_cell" is null or undefined. Any ideas?