Wednesday, March 4, 2009

Make Height Of Two Table Cell Equal

<script>
function makesame()
{
var tbl1=document.getElementById("table1")
var tbl2=document.getElementById("table2")

if(tbl1.offsetHeight>tbl2.offsetHeight)
{
tbl2.height=tbl1.offsetHeight+'px';
}
else
{
tbl1.height=tbl2.offsetHeight+'px';
}
}
</script>

No comments:

Post a Comment