In Firefox you can enter the following into the awesome bar and hit enter:
javascript:self.resizeTo(1024,768);
How do you do the same thing in IE?
javascript:resizeTo(1024,768);
vbscript:resizeto(1024,768)
Will work in IE7, But consider using something like
javascript:moveTo(0,0);resizeTo(1024,768);
because IE7 doesn't allow the window to "resize" beyond the screen borders. If you work on a 1024,768 desktop, this is what happens...
Maybe not directly related if you were looking for only a JavaScript solution but you can use the free Windows utility Sizer to automatically resize any (browser) window to a predefined size like 800x600, 1024,768, etc.
Your code works in IE, you just need to "Allow blocked Content" in the Security Toolbar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With