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!

Disable window resize

Status
Not open for further replies.

Dronealone

IS-IT--Management
Joined
Mar 13, 2002
Messages
64
Location
GB
Hello,

Can anybody tell me how I can disable the resizing of a window?

I understand that I can use the onresize event to set the window back to original dimensions, but is there anyway to stop it all together?

Thanks!
 
With the window.open instruction you have a lot of properties you can use to control the appearence of the window:

toolbar= yes/no (show/hide window toolbar)
location=yes/no (show/hide addres bar)
status=yes/no (show/hide status bar)
menubar=yes/no (show/hide menu bar)
scrollbars=yes/no (show/hide scrollbars)
resizable=yes/no (disable the resizable property)
width=value (set the width of the window)
height=value (set the height of the window)

I hope this clears things up...
 
Hi,

thanks for that.

My problem is that it is a window which is already open that I need to stop the resizing of. i.e. I don't want to have to open the window using javascript to assign the properties. I've managed to get rid of scrollbars, but just can't find a property to stop the resize.

Any ideas?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top