# Linkin!

**URL:** https://forum.kirupa.com/t/linkin/38771
**Category:** Uncategorized
**Created:** [December 29, 2003, 6:43pm UTC](https://forum.kirupa.com/t/linkin/38771 "2003-12-29T18:43:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bratram](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bratram](https://forum.kirupa.com/u/bratram)
#### Post date: [December 29, 2003, 6:43pm UTC](https://forum.kirupa.com/t/linkin/38771/1 "2003-12-29T18:43:01Z")

</div>

hi::  
i wanted to know if it was possible to link within cells-ie: one cell in the same page to another cell…or from one cell in one page to a specific cell in naother page???  
also wanted to know if multiple frames can be linked from one link?  
cheers!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 5:21am UTC](https://forum.kirupa.com/t/linkin/38771/2 "2003-12-30T05:21:22Z")

</div>

Tables as well as the cells within them are not namable, and therefore cannot be referenced or linked in the manner you describe.

You can change the content of multiple frames from a single link, by using javascript.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 7:01pm UTC](https://forum.kirupa.com/t/linkin/38771/3 "2003-12-30T19:01:07Z")

</div>

you could do this

```php

<td><a href = "#down">down</a></ td>
.
.
.
.
<td><a name = "down">down</a></td>

```

and link to two together

> 

Tables as well as the cells within them are not namable

you can give then unique ids which is the same thing

```php

<td id = "cell23">

then with javascript 
var cell = document.getElementById("cell23");
// now cell contains the an object whose properties can be manipulated programmaticly

```

cheers

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 7:21pm UTC](https://forum.kirupa.com/t/linkin/38771/4 "2003-12-30T19:21:44Z")

</div>

I don’t think that’s what **bratram** is trying to do. Perhaps I’m misinterpretting his question, but I got the impression that he was trying to change the content of a cell not the properties of a cell, based on a click of a link within another cell.

Yo bratram? ya there bratram? Please clarify. :}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 9:46pm UTC](https://forum.kirupa.com/t/linkin/38771/5 "2003-12-30T21:46:15Z")

</div>

oh

well in that case you will need to use DOM and scripting

quick example  
scripting is required…

```php

<html>
	<head>
	<script>
	function changeIt()
	{
		
		var cell = document.getElementById("down")
		cell.style.color= "red";
		cell.innerHTML = "text is changed";
		}

	</script>
	</head>
<body>

<TABLE border="1">
<TR>
<td bgcolor="yellow"><a href = "[color=red]javascript[/color]:void(0)" onClick="changeIt()">hello</a></td>
<td>hello</td>
</TR>

<TR>
<td>hello</td>
<td>hello</td>
</TR>
<TR>
<td id = "down">hello</td>
<td>hello</td>
</TR>

<TR>
<td>hello</td>
<td>hello</td>
</TR>
</table>

</body>
</html>

```

cheers

bsw

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 9:52pm UTC](https://forum.kirupa.com/t/linkin/38771/6 "2003-12-30T21:52:21Z")

</div>

Hmmm, color me impressed. Not sure what I’d ever used that for, but I’ll file it away in my bag of tricks. Thanks.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 30, 2003, 11:35pm UTC](https://forum.kirupa.com/t/linkin/38771/7 "2003-12-30T23:35:28Z")

</div>

you can get some good info here  
[http://www.mozilla.org/docs/dom/domref](http://www.mozilla.org/docs/dom/domref)

innerHTML is a IE thing that is not part of the w3c standard  
but it is sort of accepted as the “black sheep” of the family

there is also outerHTML and innerTEXT etc…

the DOM method getElementById (one among many) is  
very important when it comes to coding DHTML

> 

Not sure what I’d ever used that for

that’s what i thought too but then I learned more about DOM and am only now slowly realizing the possibilities  
the link above is super helpful

cheers

bsw
