Windows上的溢出调整大小

Hi this might sound to be novice but i am not able to figure out the solution to this simple problem.

  1. On window resize i want all the elements as it is on the page as they were when the widow was in maximized state.When the user resizes window all the content exceeding the view port i.e visible area should simply be hidden.

I have tried $(document).css('overflow','hidden') but does not seems to solve the problem.

further, out of the technologies being talked about in reference to the ajax push technology which technology seems to be useful to work on long term.for ex out of comet,long polling, pubhubsubbub or XMPP. the answer should be based on the availability of open source tools and how active is the community.

Thankyou in advance.

body {
    overflow: hidden;
}

Depending on your needs, maybe you want to set the width also.