...

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



soianyc
04-20-2005, 06: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


<head>
<title>Garment</title>

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


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

-soianyc

glenngv
04-20-2005, 06: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum