/    Sign up×
Community /Pin to ProfileBookmark

Can a whole table row be made clickable?

I have a search results page that returns about 8 columns of data (displayed using an html table). Currently, when the user hovers over any part of the row, I highlight it (change the bg color). When the user selects any item in the row, it retrieves that specific item in greater detail. What I would like to have happen, if possible, is instead of having to wrap each data item in each column in an <a> tag, I would like the whole row to be clickable, similar to the way I have made the whole row highlight whenever any part of it is hovered. I was hoping there might be a way to do this in straight CSS, but if not, a CSS / JS combo would be fine as well. Does anyone have any ideas?

BTW, the majority of the users will most likely be using IE, so I know that makes it even more difficult …

Any ideas are greatly appreciated.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayJul 11.2005 — <tr onclick="window.open('http://URL', 'descWin');"><td....
×

Success!

Help @wood_tah spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...