View Full Version : Window resizing, still showing toolbar and menubar

04-20-2005, 07:12 AM
Im a noob to javascript and am learning php on the fly. I wish to create a window that opens to a certain size without the menubar and toolbar present. I have the width and height down, when i enter the controls for the menubar and toolbar they dont go away.

Here is the code


<script language=javascript>
window.resizeTo(300,600), 'titlebar=no',' personalbar=no', 'menubar=no';

Thanx for the replies, and sorry for the dumb question.


04-20-2005, 07:25 AM
You can only control the visibility of the menubar, location, status and the like if you open a new window via javascript. You can't do that in the main window. Here's how to use window.open (http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html) method.