Ingo Siemon: ganze Tabellenzelle verlinken

Beitrag lesen

Guten Morgen Kai

<td onMouseOver="this.style.backgroundColor='#000000';" onMouseOut="this.style.backgroundColor='#B5B5B5';" onClick="location.href='dateiname.html'" style="cursor:pointer;cursor:hand;background-color:#B5B5B5;">  <a href="dateiname.html">Text</a></td>

Ginge es nicht auch so:

<td onmouseover="this.bgColor='#000000';" onmouseout="this.bgColor='#B5B5B5';" onClick="location.href=''dateiname.html'" style="cursor:pointer;cursor:hand;">

Wäre etwas kürzerer Quelltext :)
Oder wäre das dann nicht korreckt ?

Und kann ich das ganze auch auf eine Tabellen-Zeile
statt auf eine -Zelle anwenden ?

Gruß nochmal
Ingo