<!DOCTYPE html> <Html> <body onload="ResizeWindow()"> <table id="Table1"> <tr> <td> </td> </tr> </table> </body> </Html> <script> function ResizeWindow() { nBrowserWidth=window.innerWidth nBrowserHeight=window.innerHeight loObject=document.getElementById("Table1") loObject.style.width=nBrowserWidth+"px" loObject.style.height=nBrowserHeight+"px" } </script>If someone can tell me what is wrong, that would be greatly appreciated.