General discussion

Locked

AutoResize Web Window on Client Desktop

By easmit ·
Does anyone know where to get the code (HTML, DHTML, JScript) which will automatically determine
the Users Screen Size and resize Web Pages.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

AutoResize Web Window on Client Desktop

by Jay Eckles In reply to AutoResize Web Window on ...

Getting the user's screen size is not very difficult:

Javascript (at least under IE and Netscape) has a Screen object with width and height properties - screen.width, screen.height. See http://developer.irt.org/script/screen.htm for more details.

Resizing web pages is another matter. If you want to resize the window, one way to go is open a new window to the correct size and close the old window. If you actually want to re-layout the page according to the screen size (say you're attempting to provide good layout for a variety of resolutions), then the best bet is not to use scripting but rather intelligent HTML backed up with good CSS. It's a skill that takes time to develop, but the results are well worth it. I can't describe the process in a short response like this.

Good luck.

Jay Eckles

Collapse -

AutoResize Web Window on Client Desktop

by easmit In reply to AutoResize Web Window on ...

Thank you - Lizzy

Collapse -

AutoResize Web Window on Client Desktop

by easmit In reply to AutoResize Web Window on ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums