• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Do NOT show toolbar or address bar at page load

Ok,  I know that you can add a parameter to the window.open so as not to show the toolbar or address bar in a window, however, if I want to do this when the page loads do I use something in a META tag or such.
1 Solution

The only time you can specify these parameters is when you are opening a child window.  You cannot change the browser configuration simply by loading a page.

I think that is what you are wanting to do, no?

You can force Netscape into kiosk mode, but you can only do that when the browser STARTS UP, not via HTML code...
Try this one

window.open("address to the page","","menubar=no,width=xxx,height=xxx")

Hope it works.

Mr Big
A workaround would be to have the original page blank except for a window.open statement.  Then have the child close the parent.  If the parent is in the form:

<BODY onLoad=window.open()>

Then put a closing function in the child window. The toolbars in the parent will be available until the closing script fires in the child. This might be too long for you. Of course none of this will work if the user has JavaScript disabled.
Your only solution to do what you are wanting is to have the current window create a new window with the options you want via JavaScript.  There are no META tags that can do this.  The simplest way is to place the code in the 'HEAD' er part of the page.  For example:

// -->
You are reading this because you do not have JavaScript enabled.  Please enable JavaScript and then reload this page.

This will automatically get executed when the page is loaded and before

Note: menubar, toolbar, statusbar, etc. are set to not be displayed by default.  Therefore, if you want these to show up, they must be added e.g.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now