Answers for "html table tr as link"

2

html table tr as link

<!--
You can't do that. It is invalid HTML.
 You can't put a <a> in between a <tbody> and a <tr>. Try this instead:
-->
<tr onclick="window.location='#';">
        ...
</tr>
<!--
add style for pointer view
-->

[data-href] { cursor: pointer; }
<!--
When you work up to it, you'd want to use JavaScript to assign the click handler outside of the HTML
-->
Posted by: Guest on August-05-2021

Browse Popular Code Answers by Language