Hello,
I have a little question which should be easy, nevertheless i can't
solve the problem.
I want to change the background of a <td>-tag when you click on a link
in the html-page.
This is what I've got but it doesn't work:
<script type="text/javascript">
function change()
{
var x=document.getE lementById('tab le').rows
var y=x[0].cells
y[0].background="../images/knoplinks.gif"
}
<script>
<table id="tabel">
<tr>
<td background="../images/knop2.gif">
<a href="#" onclick="change ()">Gegevens</a>
</td>
</tr>
</table>
I have a little question which should be easy, nevertheless i can't
solve the problem.
I want to change the background of a <td>-tag when you click on a link
in the html-page.
This is what I've got but it doesn't work:
<script type="text/javascript">
function change()
{
var x=document.getE lementById('tab le').rows
var y=x[0].cells
y[0].background="../images/knoplinks.gif"
}
<script>
<table id="tabel">
<tr>
<td background="../images/knop2.gif">
<a href="#" onclick="change ()">Gegevens</a>
</td>
</tr>
</table>
Comment