Thursday, February 3, 2011

Make Window Fit any Resolution


This will make the current page fill the entire screen, at whatever resolution the client is using. You can put a reference to this in the Body tag, making a function out of it and using the ‘onload’ call, or you can just put it directly in the page:
<script language="Javascript"> UserWidth = window.screen.availWidth; UserHeight = window.screen.availheight; window.resizeTo(UserWidth, UserHeight); window.moveTo(0,0) </script&gt
Make sure, though, that you are not using any fixed-width tables, as, even though the browser window will be full screen, scrolling will still be necessary, if the tables’ widths are wider than the screen.

No comments :

Post a Comment