Creating a link for a Cell in a Table

  • 1
  • Question
  • Updated 8 years ago
  • Answered
Good afternoon everyone .............
Would any of you kind folks know how to link an entire CELL of a TABLE to another page?
What would be the html tag(s) -- "href" or something, I think -- I should enter into the html editor to accomplish this???
Many thanks in advance for any help or suggestions on this matter.
Regards,
Jack C.
Photo of Jack Crowley

Jack Crowley

  • 10 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Try this Jack,

<table>
<tr>
<td onClick="window.location.href='http://www.whatever1.com' ">Cell 1</td>
<td onClick="window.location.href=' http://www.whatever2.com' ">Cell 2</td>
</tr>
</table>
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
P.S. You can also use the "title" tag on a cell.
i.e. <td title = "whatever text" onClick......
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Boomer - you rock!
Photo of Jack Crowley

Jack Crowley

  • 10 Posts
  • 0 Reply Likes
Boomer,
thank you so much indeed for your help; you're a star !
I think I might succeed in making this work.
Only thing is, it's my wish to link the CELL(S) to other individual hidden pages on the site rather than link to an external URL. What should I replace the "www.whatever1.com" with to achieve this? The name of the page, maybe ..........., I dunno?
My apologies for stretching your patience with this. :)
I'm really most grateful for your assistance, dude.
TaTa, again.
Jack C.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hey Jack

The URLs to any pages (whether they be hidden or not) on your site would be something like: www.yoursite.com/page.php

Where:

yoursite.com is your website address.
page.php is the name of your page (remember to include .php at the end).

I hope that helps!
Photo of Jack Crowley

Jack Crowley

  • 10 Posts
  • 0 Reply Likes
That's fantastic, Sanja.
Many, many thanks for that.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
@ Jack

On one of my sites, I'm using a large table (365 cells) to display a year planner.
Each cell is a link and has hover text associated with it (simple "title" text).
I can't give you the link, as it is password (login) protected, so I have included a screen shot. Hope it works for you too.



@ Sanja,

You rock more :-))
Thanks.