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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable the maximize button on a top right hand of a pop up bro

Status
Not open for further replies.

coralie

Programmer
Feb 20, 2003
4
SG
hi pple,
I need your help urgently.. pls reply if u know.. thanks!
 
when you use window.open to create the pop-up, specify a width and/or a height.

On my computer when you do that the minimize/maximize button disappears.

window.open('myurl.html','window_name','width=640,height=480');
 
BTW, I don't know if this applies to all browsers. Also, I'm not sure if it's a quirk in my system or if that happens all the time.

I have IE 6.
 
hi KevinAr18 ,
Thanks... u save my day !! =)
 
Welcome.
Do you need it to work in a lot of different browsers or will IE 6 work for ya? I can test it in a few different ones I have.
 
KevinAr18,

The codes are not working.. Though the size of the window is stated, When i click on the MAX button, the window still expands to the full..
 
Ok, it must have been a quirk in my system. I had a windowblinds theme on and it may have cause that issue. That's why I said it might have been a quirk in my system cause I didn't remember it doing that in the past.

Ok, thanks to the help of posts on other sites I finally found what I was looking for:

All of this is IE ONLY.

It kind of does what you want, but with some problems/differences. The page that makes the pop-up cannot be closed. In addition the pop-up always remains in focus over the page that created it, however when you minimize the main page it will minimize the pop-up.


Test it for yourself:
There are two ways to do it:

//this method will not allow you to do anything to the opener window (the window that opened the pop-up) till you close the pop-up
window.showModalDialog('card.htm','','');

//this one will allow you to do stuff to both the pop-up and the original window.
window.showModelessDialog('card.htm','','');


The first URL I gave you was for showModalDialog. Here's the URL to showModelessDialog:



As a side note, you could also go for the fullscreen method in IE if that fits what you would need. Again all of this only works in IE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top