Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO MINIMIZE A POP UP WINDOW?

Status
Not open for further replies.

alexfusion

Programmer
Feb 5, 2001
94
AR
Hello All,
This is a very simple question.I have seen this effect in many web sites:
How can I open a pop up window and then minimize it?
Very simple but I don't know how to get the effect.
Any help very much aprecciated.
I tried once the pop up window opens using

newwindow.resizeTo(1,1),but it dosn't works, at least in IE.


where newwindow, of course, is the pop up window.
I'm in the right way? :-(

Thanks in advance.

alexfusion

mixale@hotmail.com


 
you have to look at it backwards! instead of minimizing the popup, bring the parent window in front.

window.focus(); Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
Hi theEclipse,
I was wondering how I didn't realize about that!
Thank you a lot!!!


alexfusion
 
no problem;-) Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
The reason your code doesn't work in IE is because, as part of their security model, you are not allowed to make a popup window smaller than a certain minimum size, nor are you allowed to position it off the screen. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
tracy-

do you happen to know what that minimum size is? it might be some usefull information ;-) Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
hey, afai(remember) someone here managed to kick window off the screen in ie & nn, when i was telling that that was impossible.. i have this example somewhere on my work machine, could seek for it when would end my studying today.. Victor
 
found it, but it doesnt work properly in netscapes.. so, i lied :)

here:

function op(){
win1=window.open("somedoc.html","hidden","left=2000,top=2000,width=10,height=10");
}
Victor
 
I seem to recall that the minimum size is something like 100x100 pixels.

Maybe it was NS and not IE that had the minimum size and on-screen location security policy, since Victor couldn't get the window offscreen in NS. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Yes, I'd call it the right thing to do. But a lot of people don't like the fact that they can't make a hidden popup window. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top