is there a way of referencing a table cell with javascript

my problem is i want a td cell to change colour and stay on that colour when a user clicks on that item to take them to another page.

heres what it does at the moment
<td height="33" align="center" onMouseOver="this.bgColor = '#0066FF'" onMouseOut="this.bgColor = 'transparent'"><a href="map.htm" target="mainFrame" class="navlinks">School<br>Search</a></td>

can you have onClick="this.bgcolor=''

thanks for any help