View Full Version : Hide that toolbar from within the page?

01-17-2003, 06:21 PM
Hi, I'm somewhat new to writing JS, so any help would be appreciated.

I'm trying to get a page to resize itself (no problem) and hide the address bar, toolbar, status bar when it loads.

I used this code to resize the window upon loading:



<body onload="resize()">

<script>function resize(){



But I can't find a way to remove the toolbars etc. from the window without generating the window from another page. I just want it to remove them when it loads. I searched all the references I could find, and all the tutorials on JavaScriptKit.

Any ideas?

Thanks in advance

Roy Sinclair
01-17-2003, 07:23 PM
In order to prevent hostile web sites from totally hijacking the user's browser session all browsers will refuse to let a script alter the window in the fashion you want. The only way to get there is to create your own NEW window as you have already found.

01-17-2003, 07:38 PM
Thanks for your reply. At least I know it can't be done.