Solved

how to resize a browser window dynamically ?

Posted on 1998-12-17
11
240 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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)

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now