jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes howto allow user click on row and it forward to specify link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "howto allow user click on row and it forward to specify link " Watch "howto allow user click on row and it forward to specify link " New topic
Author

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

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 459
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

Joined: Nov 08, 2001
Posts: 15385
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: howto allow user click on row and it forward to specify link
 
It's not a secret anymore!