Forum Moderators: open
seeing as many people use pop-up killers these days, it seems better to just resize the window the user is browsing in
Better for whom? For users? I don't think so. As they don't like popups, they don't like resizign windows as well. I never visit the web site again, if it resizes my browser window.
One of the only possible examples I can think of where it would make sense is a tutorial page that might run something like this:
<>
..and remember that around 50% of users have screen sizes of 800x600. This page isn't properly adapted to take account of this, to those users, it would look like [u]THIS[/u][will resize your window].
<>
But that's no reason why you shouldn't at least know how to do it. There are 2 relevent window methods. windowRef is an object ref to your window. For the current window it will simply be window. For a pop up, it will be whatever variable that you assigned to the window.open() method.
windowRef.resizeTo(newWidth,newHeight)
windowRef.moveTo(x,y)
IE & Mozilla