Rules
rules = none | groups | rows | cols | all - RULES postavlja ili vraća
unutrašnje granice tabele. Evo primera:
<html><head>
<script type="text/javascript">
function celija(a){
if(a=="all") document.getElementById("tabla").rules="all";
if(a=="none") document.getElementById("tabla").rules="none";
if(a=="groups") document.getElementById("tabla").rules="groups";
if(a=="rows") document.getElementById("tabla").rules="rows";
if(a=="cols") document.getElementById("tabla").rules="cols";
}
</script></head><body>
<table id="tabla">
<tr>
<td>celija 1</td>
<td>celija 2</td>
</tr><tr>
<td>celija 3</td>
<td>celija 4</td>
</tr>
</table><br>
<input type="button" onclick=celija("all") value="Promeni rules table u
all"><br>
<input type="button" onclick=celija("none") value="Promeni rules table u
none"><br>
<input type="button" onclick=celija("groups") value="Promeni rules table u
groups"><br>
<input type="button" onclick=celija("rows") value="Promeni rules table u
rows"><br>
<input type="button" onclick=celija("cols") value="Promeni rules table u cols">
</body></html>