Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes disabling the maximize/restore buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disabling the maximize/restore buttons" Watch "disabling the maximize/restore buttons" New topic
Author

disabling the maximize/restore buttons

An Riana
Greenhorn

Joined: Mar 06, 2001
Posts: 2
Is there a way to do that? Disable maximising and restoring of a fixed 640 by 480 window. Possible?


\m/
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Yup. Use the window.open() function. It takes a list of options as one of its arguments. In there you can specify the exact size of the window you are opening, whether or not to use scrollbars, whether or not to allow resize, and several other things. HTH
Connie Boyd
Ranch Hand

Joined: Feb 22, 2001
Posts: 73
Is there a good reason to do that though? I try not to manipulate the user's environment too much because it can get frustrating for the user. I went to a site that gave me a window with no options, and it had disabled the close button in the upper corner. Maybe your users would prefer to have those option available to them ...
An Riana
Greenhorn

Joined: Mar 06, 2001
Posts: 2
weLL bOdie, aS a maTTeR oF faCt, i have dOne thaT. windOw siZe, sCrOllbaRs anD aLL, buT tHe pRoBLem iS i can'T geT the diSaBLinG Of the maXimiZe buttOn dOne. hi cOnnie. i juZ wOuLdn't wanT tHe useRS tO geT a fuLL scReen vieW oF tHe winDOw. haD nO inTentiOnS Of diSaBLinG tHe x buttOn thOuGh. 10x n.e.waY.
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
just set "resizbale=0" and it wont resize at all , but only works with ns4.7 and ie5.5 ,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disabling the maximize/restore buttons