Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

howto allow user click on row and it forward to specify link

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, have a nice day , if i have a table which contains many records (rows) , and in each row , there have a column that is a link to another page, the link will look like below sample



and also in each row , when mouse over , it will highlight with color ,
my question is , can we simple click on the row and it will link to the specify href rather have to click on the specify column that contain link

* there have many rows in the table

thank you very much for your help
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use this:
onclick="window.location.href='yourpage.jsp'"

and this shows how it is done.
http://radio.javaranch.com/pascarello/2004/12/30/1104419159000.html

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic