marquis Posted January 31, 2007 Share Posted January 31, 2007 im not sure if this is possible is what i want to do is have the entire row of a table be a link to a different page. i see no reason why this cant be done since you can you the action listner "hover" to highlight the row when you mouse over it Link to comment Share on other sites More sharing options...
jesh Posted January 31, 2007 Share Posted January 31, 2007 Maybe you can use the click event on the table row: <table><tr onclick="location.href = 'http://www.google.com/';"><td>hello</td></tr></table> Or, rather than using location.href, you could specify your own function: <script type="text/javascript">function go(url){ location.href = url;}</script><table><tr onclick="go('http://www.google.com/');"><td>hello</td></tr></table> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now