browser resize
- Started
- Last post
- 9 Responses
- cosmo
can someone please find a browser resize javascript on load of site.
- heavyt0
easy:
window.resizeTo(800,600);
TR1
- cosmo0
awesome, wat if I wanted to resize it to full screen?
- acescence0
use screen.width and screen.height
- heavyt0
var hei = window.screen.availHeight;
var wid =window.screen.availwidth;
window.resizeTo(wid, hei);
should work
- cosmo0
awesome thanks guys
- ScottTheRobot0
Be careful how you use that.
Automatically resizing windows are annoying as hell, unless the site specifically warns you it's coming.
- toastie0
yeah, i hate it. I open most of my links in a new tab in firefox and when a site resizes itself down together with all the other sites in the tabs, it's annoying.
- skelly0
i'm not sure what you're using it for, but for what it's worth, if a site makes the window full screen, i immediately leave in annoyance. not so much anymore, since firefox just maximizes the window, but still very annoying.
- heavyt0
i forgot to mention that you want to position the window at 0,0 before resizing.
window.moveTo(0,0);
TR1