html table tr as link

Solutions on MaxInterview for html table tr as link by the best coders in the world

showing results for - "html table tr as link"
Cristóbal
11 Sep 2016
1<!--
2You can't do that. It is invalid HTML.
3 You can't put a <a> in between a <tbody> and a <tr>. Try this instead:
4-->
5<tr onclick="window.location='#';">
6        ...
7</tr>
8<!--
9add style for pointer view
10-->
11
12[data-href] { cursor: pointer; }
13<!--
14When you work up to it, you'd want to use JavaScript to assign the click handler outside of the HTML
15-->