PDA

View Full Version : Loading page with no toolbars or address bars


Arc
03-12-2003, 08:59 PM
Hi. I need to have some javascript or something that will casue whatever window loads my page to have only a title bar..no buttons or address bar or anything else.

I know how to do this if i make the link myself using the
onclick="MM_openBrWindow('email.php','','width=300,height=200')

code. But i need my page to force the browser to not have any toolbars and be sized to 33x200 no matter how my page loaded.

So in other words i need code inside the page itself that tells the browser to resize and do away with toolbars.

Is this possible? Thanks!:D

Roy Sinclair
03-12-2003, 09:35 PM
Not possible. You can't change the "chrome" on an existing window.

liorean
03-12-2003, 09:36 PM
Nope - you can only control the browser chrome if you create the window yourself.

There is a resizeTo function, though, that you might be interested in. see <http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203300> and <http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/resizeto.asp>.

(You'll not be able to control the client area size, just the entire window size.)

Arc
03-12-2003, 09:45 PM
ok thanks guys... i'm gunna have to look for a different solution.