web_master Posted December 4, 2007 Share Posted December 4, 2007 Hi, how can I do to a full <table></table> be a link: <table> <tr> <td>some text</td> </td> </tr> </table> mean, that user can click everywhere in a table, all area in table will be a link... I think like this: <a href="#"> <table> <tr> <td>some text</td> </td> </tr> </table> </a> is that a right way? thankx web_master Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted December 4, 2007 Share Posted December 4, 2007 Not a PHP question...but you can do it with JavaScript. <script language="javascript"> function link(url){ window.location = url } </script> <table border=1 onclick="link('http://www.google.com')"> <tr> <td>Blah blah blah</td> </tr> <tr> <td>Blah blah blah</td> </tr> <tr> <td>Blah blah blah</td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
web_master Posted December 4, 2007 Author Share Posted December 4, 2007 OK, thanx - but the better version is my, because then is a link the all area of table, with Java wil link only a borders of a table. BUT THNXS a lot! T Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.