I want a table to be bigger (or smaller) with some pixels after i clicked a button.
Now what i have is this :
Code:
<script language="JavaScript">
function test()
{
var test0r = document.getElementById("TopTable").width;
document.getElementById("TopTable").setAttribute("width", test0r += 10);
}
</script>


<table border=1 id="TopTable">

<tr>
       <td>nerd</td>
</tr>
</table>

<input type="button" value="Klik!" onclick="test();">
It does something though, it just makes the table 10 times bigger or so

anyone has an idea on how to fix this bug / problem?

thx in advance