<html> <head> <title>Build-o-Table</title> <script type="text/javascript"> function procImage() { var tbl = document.getElementById('table1'); tbl.border="5px"; tbl.cellPadding="5px"; } </script> <body onload="procImage();"> <table id="table1"> <tr><td>adsf</td></tr> </table> </body> </html>