[thelist] onclick in table row

Diane Soini dianesoini at earthlink.net
Tue Jan 27 19:42:08 CST 2004

I'm not sure why you would want a different url for the <tr> and <a>.

You might try removing the onclick from the <tr> and using css to 
change the display property of the <a> to block. I don't think this 
works for IE on the PC, though. But I would question how important is 
this fancy stuff anyway.


On Tuesday, January 27, 2004, at 04:13 AM, 
thelist-request at lists.evolt.org wrote:

> hi all,
> i posted this last week and am still trying to work out the best 
> approach.
> if anyone has any ideas, they'd be most welcome...
>> i've some legacy code that is littered with tables containing onclick
>> links in table rows and standard links in the td. (as below). it 
>> means the
>> rows highlight nicely on mouseover (via css) but the client (on macs) 
>> say
>> that the td links don't work.
>> <tr class="dataTableRowSelected" 
>> onmouseover="this.style.cursor='hand'"
>> onclick="document.location.href='foo.html">
>> <td><a href="bar.html">link</a></td>
>> </tr>
>> is there anything i can do that will solve this whilst still leaving 
>> them
>> the row highlight effect (which they're expecting to keep)?
>> many thanks
>> kris

More information about the thelist mailing list