Resizing a screen

I am knew to javascript I am trying to learn how to resize a screen using javascript to show at 1024by768.

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!

window.resizeTo(1024px, 768px)

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.