PDA

View Full Version : Help: How do I disable the minimize, resize, close boxes


limshady411
09-05-2005, 06:42 PM
Hello,

I am wondering how I can disable the minimize, resize, and close boxes (located on the upper right of all windows) in a popup window.

Thanks.

vwphillips
09-05-2005, 06:53 PM
dont think you can disable I'm glad to say, you could play with onresize, onunload but it is bad practice to override the vistors wishes.

limshady411
09-05-2005, 09:12 PM
Thanks. I was playing with some ideas, but I agree.

jscheuer1
09-05-2005, 11:27 PM
window.open('http://www.google.com', 'goog', 'resize=no')will prevent resizing with either the mouse or the max/min button but, that is about as far as it goes. You could experiment with code on the page in the window like:
onblur=function(){window.focus()}Works, sort of, in IE at least.

TNO
09-06-2005, 12:08 AM
Using an HTML Application you can disable the buttons, but this was meant for client side applications.

jscheuer1
09-06-2005, 03:51 PM
I ran accross this link (http://qooxdoo.sourceforge.net/build/public/test/user/Window_2.html) that seems right up this alley.

limshady411
09-06-2005, 07:21 PM
Thanks for your responses. I'll give this a try and let you know how it goes.