Link to home
Create AccountLog in
Avatar of willsherwood
willsherwood

asked on

onclick to a href link for a table row

how can i have an html table row to be a hotspot to be clickable

something like
...
<tr onclick="newpage.html" >

note that this is not to be a new window pop-up, just a simple link

thanks
ASKER CERTIFIED SOLUTION
Avatar of Mel_Pemble
Mel_Pemble
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of willsherwood
willsherwood

ASKER

super, many thanks!
how to get the cursor to change to pointer when hovering?
in the head add a style

        <style type="text/css">
        table tr:hover{
           cursor:pointer;
        }
        </style>


if you have multiple tables give the table a unique id, or the tr a class name and change the selectors accordingly