Solved

how to resize a browser window dynamically ?

Posted on 1998-12-17
11
272 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
Industry Leaders: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

752 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