• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic