The window.resizeTo() method is what you need there, but it's normally not a good idea to perform that type of action, as it tends to upset people who visit the page.
I just have to put this into the head and that's it!
As Paul said, this can incredibly annoying to users. It drives me nuts. Do you have a good reason for doing this?
I agree with the previous replies.
IMHO you would have similar results with
Fortunately decent browsers allow you to turn off web pages ability to do resizing.