Solved

how to resize a browser window dynamically ?

Posted on 1998-12-17
11
270 Views
Last Modified: 2010-04-09
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
Comment
Question by:mitek
  • 6
  • 4
11 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1840743
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
 
LVL 4

Expert Comment

by:martinag
ID: 1840744
So the button would be like
<FORM><INPUT TYPE="BUTTON" VALUE="Resize" onClick="resizeTo(300,70)"></FORM>

Martin
0
 
LVL 4

Author Comment

by:mitek
ID: 1840745
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!

 
LVL 4

Expert Comment

by:martinag
ID: 1840746
I don't think so. Sorry.

Martin
0
 

Expert Comment

by:cbittner
ID: 1840747
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
 
LVL 4

Expert Comment

by:martinag
ID: 1840748
Do you want me to answer this?

Martin
0
 
LVL 4

Author Comment

by:mitek
ID: 1840749
as you wish.
0
 
LVL 4

Author Comment

by:mitek
ID: 1840750
Actually, hold on. Did you ever work with Visual Studio 98 ?
0
 
LVL 4

Expert Comment

by:martinag
ID: 1840751
No. Why do you ask that?

Martin
0
 
LVL 4

Author Comment

by:mitek
ID: 1840752
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
 
LVL 4

Accepted Solution

by:
martinag earned 120 total points
ID: 1840753
Probably not... :-)

I'll answer this one now. Merry Christmas!

Martin
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question