I want to set a fixed width for my webpage so that users can scroll when they resize their browsers, but I want the maximum size of the page to be the user's maximum screen size (so there are no white spaces if they use a large screen, or so they wouldn't have to scroll immediately if they use a small screen).

I tried using Javascript to create functions that returns the screen width and height, but it seems that it isn't possible to call these functions as the width and height of the page.

What I have right now:

```
<script>
    function getScreenWidth() {
        return screen.width;
    }
    function getScreenHeight() {
        return screen.height;
    }
 </script>

 <body width="getScreenWidth()">
  ...
 </body>

```

Calling the getScreenWidth() function into the width of the body doesn't seem to be working.