How To Make Window Fit Any Resolution

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script type="text/javascript">
        function resolution() {
            UserWidth = window.screen.availWidth
            UserHeight = window.screen.availheight
            window.resizeTo(UserWidth, UserHeight)
            window.moveTo(0, 0)
        }
    </script>

</head>
<body onload="resolution();">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
    incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
    exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
    irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
    pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
    deserunt mollit anim id est laborum. The text is derived from Cicero’s De finibus
    bonorum et malorum (On the Ends of Goods and Evils,
</body>
</html>

No comments:

Post a Comment