Forum Moderators: open

Message Too Old, No Replies

define browser dimensions without resorting to pop-ups

A novice writes/types

         

father_jack

1:42 pm on Jan 19, 2004 (gmt 0)

10+ Year Member



Hi all,
I'm hoping that one of you could help with a relatively dim query :) . It's somewhat similar to animgirl's question - I'd like to change the browser window size (and constrain if possible), but without having to use pop-ups. Up until now, I've simply used the preset Javascript behaviours from Dreamweaver, but seeing as many people use pop-up killers these days, it seems better to just resize the window the user is browsing in. If anyone can give me any pointers, that'd be grand.
Cheers all.

marek

1:54 pm on Jan 19, 2004 (gmt 0)

10+ Year Member



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.

Saintjude

2:20 pm on Jan 19, 2004 (gmt 0)



I second that wholeheartedly, and I too wouldn't return to a site that did that.

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

father_jack

3:50 pm on Jan 19, 2004 (gmt 0)

10+ Year Member



Crikey. Well, you learn something new every day. In retrospect, perhaps it would be somewhat annoying, though the pop-up killer problem still concerns me a bit. For those that are relatively computer-illiterate (I know a good few people that won't go near them unless they have to), they may be put off by the fact that they must find out how to disable the program before they can view the site. It's for an aspiring musician (who uses defiantly retro methods of recording), so it has to be as simple as possible. Cheers for the replies, I'll have to have a think...