Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to resize a browser window dynamically ?

Posted on 1998-12-17
11
Medium Priority
?
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 360 total points
ID: 1840753
Probably not... :-)

I'll answer this one now. Merry Christmas!

Martin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

664 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