Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing browser to auto width and height
Message
From
11/05/2014 15:10:54
 
 
To
All
General information
Forum:
HTML5
Category:
Troubleshooting
Title:
Maximizing browser to auto width and height
Miscellaneous
Thread ID:
01599852
Message ID:
01599852
Views:
58
On one particular page, I cannot understand why I have scrollbars appearing. This code is very simple. If you try it in IE 11, you will see that I have scrollbars appearing, despite the fact that I adjust my table to the browser width and height.
<!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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform