View Full Version : Removing status/menu bars on pageLoad

10-24-2003, 05:55 PM
Hi there, I am using the following javascript function to resize and position a window when opened (using the onLoad to call the function)

function positionWindow()
theScreen = window.screen;

My question is: how do I add to this code to take off the status bar, scrolls, menu bar, address bar etc...

many thanks for any help


Roy Sinclair
10-24-2003, 06:07 PM
If you want to remove things from the window you have to open a new window without those things. By design, browsers won't let you alter the "chrome" on an existing window.

You will also find that most people think that moving and resizing an existing window is a pretty rude thing to do as well. Since the user normally sets the size and position of the window to meet their own preferences. Be sure you've got a really, really good reason for doing that.