Hyperlink target to a Cell of a Table

Is it possible, just using HTML (or even a simple java script) to have the target of a hyperlink be a cell in a table?  My goal is to have the hyperlink change the contents of a cell upon being clicked.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

//try this simple example by Antithesis. The key here is the getElementById function.
//Once you give each cell an id you could reference it in whatev'r way you want
<script language="javascript">
function getobj(g_elm)  {
    if (document.all) return document.all[g_elm];
    if (document.layers) return document.layers[g_elm];
    if (!document.all && document.getElementById) return document.getElementById(g_elm);
function chng(c_el, c_tx)  {
    getobj(c_el).innerHTML = c_tx;
<table name="myTable" border="1">
<tr name="TheRow">
  <td id="TheCell">My cool text</td>
  <td>Another Text</td>

<a href="javascript:chng('TheCell', 'New text')">change</a>
Three options:

1.  If you just want to target teh cell to insert some text or an image then you bring them in with the original page in a hidden layer and then then swap the nodes from the onclick event of the link.  Using the onclick event means Jaascript must be enable.

2.  Use XMLHTTP with a lot of scripting.  This will equire not just JavaScript support, but for IE will also requie active x support.

3.  Put an iframe in the cell and target that.  Pure HTML.

3 is my preferred option and would work like this:

<td><iframe name="targetF" src=""></iframe></td>

The link would look like:
<a href="blah.html" target="targetF">click for blah</a>


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.