Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: How to resize th web page according to the monitor size?


Message #1 by "Fawaz" <fauziab@h...> on Thu, 25 Oct 2001 17:28:46
 use the window.resize function and get the screen.width, screen.height of the monitor....
window.resize(screen.width,screen.height)
  Fawaz <fauziab@h...> wrote: Hi
I am in kind of a jam. I have several web pages that don't fit on smaller 
screen monitors. I was looking at Hewlett Packard site and when the pages 
load up, they tend to resize according to the monitor size like if the 
monitor size is small and page size is big then it gets smaller to fill 
the screen and vice versa. I want to do something like that. I have an 
idea of how to do this through window width and height but am not sure. 
Can anyone enlighten me on this?
Thanks
Fawaz


  Return to Index