By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,977 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,977 IT Pros & Developers. It's quick & easy.

How to make a complete <td> or say <tr> as a hyperlink

P: n/a
i have foll. code

<tr>
<a href="a1.shtml">

<td width='100%'>
&nbsp;"+Testing+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</a>
</tr>

The problem here is the "hand" image which we see while hovering over a
link is not displyed.

Kindly help

Regards,
Peter

Aug 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
wrote on 21 aug 2006 in comp.lang.javascript:
<tr>
Your question has nothing to do with javascript,
so is off topic in this NG.

Please follow up in a html group,
or if you want to address css, in such group.
<a href="a1.shtml">
Illegal, there should be no element between <trand <td>!
<td width='100%'>
css style is preferred.

<td style='width:100%;'>
&nbsp;"+Testing+
This can be done, but the " and the + will just show up as text.
Is that what you expected?
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Why? What do you expect of these &nbsp; ?
</td>
</a>

Try:

<table>
<tr>
<td width='100%'>
<a href="a1.shtml">
&nbsp;"+Testing+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;
</a>
</td>
</tr>
</table>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 21 '06 #2

P: n/a
pe*********@gmail.com wrote:
i have foll. code
<tr>
<a href="a1.shtml">
This is illegal html. No content can exist between a <trand <tdtag.

Instead, you can make the whole row clickable using

<tr style="cursor:pointer" onclick="location.href='a1.shtml'">

There is no way to make the whole row clickable without javascript.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Aug 21 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.