File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Truncated posts
How restore disabled textbox values if there is any validation error in current page.
Adding maxmize icon to JFrame
The JavaRanch FAQ seems weird/broken
disableing 'x' button