1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function boom() { document.getElementById('A').setAttribute('colspan', 0); document.getElementById('B').setAttribute('rowspan', 3); } </script> </head> <body onload="boom();"> <table> <tr> <td id="A">TD</td> <td id="B" colspan="3">TD</td> </tr> </table> </body> </html>