Typically, when the browser loads a new page, it only uses a portion of the screen's real estate. However, if your pages are so grand that no minimized window will ever do, you can use the
window.resizeTo function to force the browser to load your pages within a full screen. The following code accomplishes this task:
<script for=window event=onload>
window.resizeTo(screen.availWidth, screen.availHeight);
</script>
In this code, the properties
screen.availWidth and
screen.availHeight determine the maximum height and width for the client screen and passes the values to the
window.resizeTo() function. The end result is a fully maximized page.
Related articles: browser,
graphics,
javascript
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.