anybody got a favorite way of doing this?

C

chris leeds

I'm wondering if there is a way to make a window re-size itself like a
pop-up but just "onload".
that way you wouldn't have to write the link as a pop-up but the particular
page would resize itself and configure it's own options.

If it can be done maybe you've got a link for me?
 
T

Thomas A. Rowe

You would still have to create the window using JS.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
C

chris leeds

yes, but couldn't that JavaScript be on the page that is opening. sort of
like a self-popping window?
 
T

Thomas A. Rowe

Chris,

I now understand your question, but I don't think that you can do it exactly
the way you want or expect. You might want to search for a JavaScript
newsgroup to post to.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
M

MD WebsUnlimited.com

Hi Chris,

Yes, you can do this in the onload event of the body tag using JavaScript
and the window object.
 
C

chris leeds

Thanks Mike,
Do you have a recommendation of where I might find such a script or what
it'd be called so I can search for it?

TIA
 
J

Jack Brewster

Chris,

Any window resize script should be able to be modified to do this. If
you've got a new window code generator, just create a new window link, look
at the generated code, and hack out just the bit you want. Roll that into a
new JS function and call that function with <body onload=functionname> from
the page you want resized.
 
C

Cheryl D. Wise

Note, most pop-up blockers will prevent javascript onload events for new
windows from firing.

Also you don't know the resolution of your visitors monitor or what else
they may have open. People tend to get really annoyed when a site resizes
their primary browser window and leave the site not to return. So think
carefully about why you want to resize the browser window before you put in
javascript to do so.

You also run into accessibility problems if you "configure" the browser away
from the visitor's preferences.
 
C

chris leeds

I agree but this is for a "special" application that I think will be OK.
Your point is well taken and should be considered by anyone looking to do
something like this.

thanks,
chris
 
C

chris leeds

Thanks Jack,
that's a great idea. I'll work on it and see how it pans out.

thanks again,
chris
 
C

Cheryl D. Wise

As long as you are aware of the drawbacks.

Whatever script you end up with I'd suggest testing it with a browser that
has pop-up stoppers installed and configured. Google toolbar for IE has that
option as does Mozilla and Opera can be set to keep windows from opening
outside the browser window. Borrow a Mac and check in both IE 5 and Safari
at a minimum.

I use Opera specifically because of that feature when I log into tmobile at
Starbucks. Since they bought out mobilestar they try to maximize the browser
and open a pop-up. If I had a reasonable alternative I'd switch because I
find it so annoying.
 
M

MD WebsUnlimited.com

Chris,

Sorry for the long delay in responding but I've been busy.

The code:
<body onload="window.resizeTo(200,200)">
 
M

MD WebsUnlimited.com

Cheryl,

There are methods to determine the browsers current size and there are
methods to determine the screen resolution. Both can be used to persist the
present values and return to then when you're done.

There are many reason for wanting to do this.
 
C

chris leeds

thanks Mike,
I'm thinking of using a function (containing the custom effects (tool bars,
scroll/ no scroll bars, etc.)) and calling the function from the <body
onload event. but I've been short of time too. Luckily I won't have to
worry about sniffing the browser size and resolution because this "self
popping" window will load from a link target "_blank".

Thanks again,
chris
 
Top