It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

How to link to a table row?

How to link to a table row?

Postby GilDawson on Mon Nov 29, 2010 9:23 pm

I want to create an anchor link that applies to the whole row of a table. That is, wherever the visitor clicks anywhere in that row, the link will be taken.

Is this possible? I've tried the html below and it doesn't seem to work. Have I made a mistake, or is what I want to do out of scope for html?

--Gil

<html>
<head>
</head>
<body>
<table>
<a href="http://MacBear.com/Page1">
<tr>
<td>row one cell one</td>
<td>row one cell two</td>
</tr>
</a>
<a href="http://MacBear.com/Page2">
<tr>
<td>row two cell one</td>
<td>row two cell two</td>
</tr>
</a>
</table>
</body>
</html>
GilDawson
 
Posts: 4
Joined: Mon Nov 29, 2010 5:21 pm

Re: How to link to a table row?

Postby GilDawson on Tue Nov 30, 2010 1:36 am

GilDawson
 
Posts: 4
Joined: Mon Nov 29, 2010 5:21 pm

Re: How to link to a table row?

Postby pep1439 on Fri Dec 03, 2010 10:43 am

<html>
<head>
</head>
<body>
<table border="1">

<tr>

<th><a href="http://MacBear.com/Page1">row one cell one</a></th>
<th><a href="http://MacBear.com/Page1">row one cell two</a></th>

</tr>
</a>
<a href="http://MacBear.com/Page2">
<tr>
<td>row two cell one</td>
<td>row two cell two</td>
</tr>
</a>
</table>
</body>
</html>
pep1439
 
Posts: 7
Joined: Wed Dec 01, 2010 2:11 pm


Who is online

Users browsing this forum: No registered users and 4 guests