Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • 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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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