<html> <body> <table id="tbl" cellspacing=0 border=0 style="background: red" cellpadding=10> <tr><td width=100 bgcolor=green></td> </table> <script> document.getElementById("tbl").removeAttribute("cellpadding"); </script>