how to resize a browser window dynamically ?

I need a JavaScript solution for window resize problem that would work consistently in 3.0+ browsers. Is there any way to have a JavaScript function that would resize a window when, let's say, a user clicks on a button ?
It's ok if window content is reloaded. However, it's not OK to close and reopen this window.
LVL 4
mitekAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
martinagConnect With a Mentor Commented:
Probably not... :-)

I'll answer this one now. Merry Christmas!

Martin
0
 
martinagCommented:
resizeTo(width, height) will only work in 4.x browsers.

In other browser there's nothing to do, as far as I know.

Martin
0
 
martinagCommented:
So the button would be like
<FORM><INPUT TYPE="BUTTON" VALUE="Resize" onClick="resizeTo(300,70)"></FORM>

Martin
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
mitekAuthor Commented:
is there any way to make it work in 3.0 browsers ?
(probably not)
oh well. not a big deal.
0
 
martinagCommented:
I don't think so. Sorry.

Martin
0
 
cbittnerCommented:
No, there is no way to resize in 3.x The only way would be to simulate resizing which would require opening a new window with the new size parameters and the same content and closing the calling window. A little flashing effect when the windows open and close but the user would probably see that as the window resizing.
0
 
martinagCommented:
Do you want me to answer this?

Martin
0
 
mitekAuthor Commented:
as you wish.
0
 
mitekAuthor Commented:
Actually, hold on. Did you ever work with Visual Studio 98 ?
0
 
martinagCommented:
No. Why do you ask that?

Martin
0
 
mitekAuthor Commented:
Never mind. If you were, I'd ask you a question about some funky thing in Visual Studio that we're having problems with, but it will make no sense since you don't know the program...

0
All Courses

From novice to tech pro — start learning today.