Maximize the Web Browser Window with JavaScript

This handy little JavaScript two-liner will resize the browser window to the users full screen size and position it flush top / left so that it appears maximized. Flash's full screen is much more seamless, eliminating the address bar and all of that as well, but with no flash, this will do.

<script language="javascript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
</script>

No comments (Add your own)

Add a New Comment

Enter the code you see below:
code
 

Comment Guidelines: No HTML is allowed. Off-topic or inappropriate comments will be edited or deleted. Thanks.