Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

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.
0
mitek
Asked:
mitek
  • 6
  • 4
1 Solution
 
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
 
mitekAuthor Commented:
is there any way to make it work in 3.0 browsers ?
(probably not)
oh well. not a big deal.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
martinagCommented:
Probably not... :-)

I'll answer this one now. Merry Christmas!

Martin
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now