Turn off toolbars in HTML?

Is there a way to turn off the toolbar, navigation bar, and menu bar inside an HTML document?  I'm talking about using html attributes as a website developer (not browser preferences as a user).
Who is Participating?
andreifConnect With a Mentor Commented:
Here is an example of code:

//you can play with those parameters. If you do't like predefined window size, you can delete width and height settings

wndParam = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=300";

function OpenWin(url){
  newWnd = window.open(url,"newWindow",wndParam);      
//new window name is "newWindow", you can use this name with a target parameter of href

  return true;      

<body onload=javascript:OpenWin('http://your.url')>
Wait for a new window!

Hope, it helps you!
You can do it only in a new window. If you need more inforamtion about it, I can help.
Yes u can do using javascripts. If u want coding i will give it to u.
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'.

georgeburdellAuthor Commented:
I appreciate the script code but I'd like to do this using pure HTML if possible (I want to keep this compatible with navigator and explorer without too much fuss).  Plus, these settings will be applied to a new window (e.g. you click on a link and it brings up a graph in a new window without toolbars or navigation bars).
georgeburdellAuthor Commented:
What I mean to say is, if there is no way to do it with pure HTML, I'll accept the above code as the answer.
There's no way to do it without javascript
Javascript is the only known method supported with most browsers.  Using the method commented above will yield the best results and it is unlikely that you will have a visitor with a browser that does not support it.  Both of the major competitors, "ie and netscape" have supported javascript since the days of 3.0, if you have a browser older than that, it really is time to upgrade.
FWIW, for some strange reason, you CAN change these attributes in the "current" window in NS.  Try:


If you load the same document you are viewing via this code, you can get a window (the same one) which has new attributes.

I can't figure it out, since this does NOT work in IE (and we all know that IE is much less stodgy than NS).

Just my $.02,

Since both ie and netscape seem to be unable to agree on anything, your best bet is to try to code the page for both.

BTW, that is interesting Tom, I didn't realize you could do that.
Surprised me, too!

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.

All Courses

From novice to tech pro — start learning today.