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 Link to comment https://forums.phpfreaks.com/topic/80150-solved-to-be-a-link/ 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> Link to comment https://forums.phpfreaks.com/topic/80150-solved-to-be-a-link/#findComment-406199 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 Link to comment https://forums.phpfreaks.com/topic/80150-solved-to-be-a-link/#findComment-406206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.