how do i make a cell to be a link

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

how do i make a cell to be a link

Post by adsegzy »

Hello friends,

I want to make some of my cell to be links eg

Code: Select all

<table width="200" height="128" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td>Home</td>
  </tr>
  <tr>
    <td>Abour Us </td>
  </tr>
  <tr>
    <td>Contact</td>
  </tr>
</table>
so that instead of making only the words on the cell to be links (<a href="mysite.com/aboutus.html">About Us</a>) i want it to be that once you click anywhere on the About Us cell, you should be directed to about us page.

regards
phu
Forum Commoner
Posts: 61
Joined: Tue Mar 30, 2010 6:18 pm

Re: how do i make a cell to be a link

Post by phu »

The onclick property is one solution. You can set it to run a simple Javascript command that will point the user's browser at a new URL.
Post Reply