424,054 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

Hiding the toolbar, menubar, etc?

P: n/a
How can the toolbar and menubar be hidden in IE?

When opening the window via javascript I can specify
'toolbar=no,menubar=no', which works fine.
However if the window already exists how can I remove them? If the browser
is Netscape I can use javascript:
window.toolbar.visible = false;
window.menubar.visible = false;
but IE produces the error:
"'window.toolbar.visible' is null or not an object".
Is there a different window attribute or method I should use, or do I need
to do this with VBScript?

Thanks.
Jul 20 '05 #1
Share this Question
Share on Google+
15 Replies


P: n/a

"Code Monkee" <mo****@monkeebusiness.com> wrote in message
news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE? [in the main window]
You can't, and why would you want to? This would make your visitors simply
*hate* you. They wouldn't be able to leave your site. They wouldn't be able
to go back to what they were doing. They wouldn't be able to open their
Favorites. It would be a bloody mess. Your visitors would probably storm to
your house with rope, straw, and torches.
Is there a different window attribute or method I should use, or do I need
to do this with VBScript?


Irrelevant, both JScript and VBScript use the same DOM.
Jul 20 '05 #2

P: n/a
On Tue, 15 Jul 2003 15:34:06 -0500, Code Monkee wrote:
How can the toolbar and menubar be hidden in IE?

Is there a different window attribute or method I should use


There is no method you should use. People tend to like their toolbars.

--
Toby A Inkster BSc (Hons) ARCS | mailto:to*****@goddamn.co.uk | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:ta*@jabber.linux.it
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)
Jul 20 '05 #3

P: n/a
"spaghetti" <sp*******@aspyre.net> wrote in message
news:wp******************@newsread1.prod.itd.earth link.net...
This would make your visitors simply
*hate* you. They wouldn't be able to leave your site. They wouldn't be able
to go back to what they were doing. They wouldn't be able to open their
Favorites. It would be a bloody mess. Your visitors would probably storm to
your house with rope, straw, and torches.


I'll bring the rope. Assemble up by the old mill at midnight. We gotta fight for
them toolbars boys.......

--
Andrew Davidson
Jul 20 '05 #4

P: n/a
Andrew Davidson wrote:
"spaghetti" <sp*******@aspyre.net> wrote in message
news:wp******************@newsread1.prod.itd.earth link.net...
This would make your visitors simply
*hate* you. They wouldn't be able to leave your site. They wouldn't
be able to go back to what they were doing. They wouldn't be able to
open their Favorites. It would be a bloody mess. Your visitors would
probably storm to your house with rope, straw, and torches.


I'll bring the rope. Assemble up by the old mill at midnight. We
gotta fight for them toolbars boys.......


I'll be there. But keep it quiet - we don't want them to know we are
coming... ;-)

--

Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #5

P: n/a
I'll bring the rope. Assemble up by the old mill at midnight. We
gotta fight for them toolbars boys.......


I'll be there. But keep it quiet - we don't want them to know we are
coming... ;-)


Ooookay, I put together a list of things we need. Let's make sure we do this
proper, alright?

- Duct tape
- Pickaxe
- Shania Twain CD
- Rubber hose
- Dish to pass
- Paper plates
- Napkins
- Can of gasoline
- Blow torch


Jul 20 '05 #6

P: n/a
spaghetti wrote:

Ooookay, I put together a list of things we need. Let's make sure we
do this proper, alright?

- Duct tape
- Pickaxe
- Shania Twain CD
- Rubber hose
- Dish to pass
- Paper plates
- Napkins
- Can of gasoline
- Blow torch


You forgot the earplugs so *we* don't have to listen to Shania Twain. ;-)
Other than that, looks like we're set.

--

Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #7

P: n/a
"Code Monkee" <mo****@monkeebusiness.com> wrote in message
news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?


How can I get into your house and hide all the furniture?

--
Andrew Davidson
Jul 20 '05 #8

P: n/a
DU
Andrew Davidson wrote:
"Code Monkee" <mo****@monkeebusiness.com> wrote in message
news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?

How can I get into your house and hide all the furniture?

--
Andrew Davidson


How can a radio station hide all the other knobs and buttons by which an
user could choose the volume setting, radio station and other
customization features available on a radio?

How could a tv broadcasting corporation implement a device working via
waves which would prevent listeners from going to the bathroom (or
leaving the living room) while advertisements are playing?

How can an application take over full and absolute control over (and
impose brutally its preferences) its users, customers via the
application, software, device which is supposed to promote its product,
respect the intelligence of its users, visitors, listeners, customers?

How can an application impose brutally its preferences to its users,
customers via the application which is supposed to promote its product,
respect the intelligence of its users, visitors, listeners, customers?

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/

Jul 20 '05 #9

P: n/a
Whoa Nellie!!!
Zealots, RELAX PLEASE.

The reason I wanted to remove the toolbar and menubar is because this
particular popup is launched from a 3rd party app, so I have no control over
it's original creation state, and the one and only purpose of this popup is
for form entry and I simply wanted to increase the odds that the user
wouldn't need to scroll to view the whole form.
(All concerns about removing things from the browser should be moot, since
the purpose of this window is not to browse but to enter information into a
form. And if they want to copy the content, gee, the right mouse button lets
them do that, doesn't it? Yes it is your browser, but it's my popup!)

After all the firestorm of postings, apparently nobody knows (or is willing
to tell) how to do this!

BTW, if you plan on coming to my house with rope and gasoline you might as
well bring your crosses and bedsheets too, but I hope your ass is dog bite
and rock salt proof.

"Code Monkee" <mo****@monkeebusiness.com> wrote in message
news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?

When opening the window via javascript I can specify
'toolbar=no,menubar=no', which works fine.
However if the window already exists how can I remove them? If the browser is Netscape I can use javascript:
window.toolbar.visible = false;
window.menubar.visible = false;
but IE produces the error:
"'window.toolbar.visible' is null or not an object".
Is there a different window attribute or method I should use, or do I need
to do this with VBScript?

Thanks.

Jul 20 '05 #10

P: n/a
Salutations:

I'm not using .js anymore - I'd try giving the pop-up a target name (or
finding out what it is) then try assigning the close to the target name - I
think - I had something like it working about 3 years ago like that but I
dropped javascript to focus on actionscript and I think you are indicating
that some third party you are using is putting the form up - which may make
a close command difficult..

I started worrying (and seeing incomplete page transfers in the log here to
confirm my worries) that internal site links I wanted to display in a
stripped window weren't turning up past the 'pop-up' blockers about a year
ago which - no matter how you cut it - is very sadly what a (any) window
call has become..

--

J Dexter - webmaster - http://www.dexterdyne.org/
all tunes - no cookies no subscription no weather no ads
no news no phone in - RealAudio 8+ Required - all the Time

Radio Free Dexterdyne Top Tune o'be-do-da-day
Queen - Fat Bottomed Girls
http://www.dexterdyne.org/888/063.RAM
Code Monkee wrote:

Whoa Nellie!!!
Zealots, RELAX PLEASE.


<snipped for length - not for spite>
Jul 20 '05 #11

P: n/a
DU
Code Monkee wrote:
Whoa Nellie!!!
Zealots, RELAX PLEASE.

The reason I wanted to remove the toolbar and menubar is because this
particular popup is launched from a 3rd party app, so I have no control over
it's original creation state,
Ok. So, you want to control the browser window of your visitors, your
users and if you could, you would want to control the coding of a 3rd
party app, right?

and the one and only purpose of this popup is for form entry and I simply wanted to increase the odds that the user
wouldn't need to scroll to view the whole form.
Ok, then increase the font size of that form and let's see how people
will scroll that form popup without scrollbars... because this kind of
scenario usually happen often to users over 40.
Why don't you send an email to the web designer of that 3rd party app?
Isn't that the coherent, consequent thing to do in order to address the
real issue?
(All concerns about removing things from the browser should be moot, since
the purpose of this window is not to browse but to enter information into a
form. And if they want to copy the content, gee, the right mouse button lets
them do that, doesn't it? Yes it is your browser, but it's my popup!)
Yeah.. but can they save the page? You know, File/Save as, File/Save
Page as...? can they print the page without the menubar? Remember that
someone in this thread said that some info could be so important that it
would require a popup just to render the info. So, why format the popup
in a way that defeats the pursued purpose of such popup then?

The bottom line is always the same. The more (toolbars, browser
functionalities) you remove from a secondary browser window (via the
window.open() call), the more you make such window useless, unworthy,
unsuitable, anti-user, the more it goes against accessibility to
content. The more (toolbars, browser functionalities) you remove from a
secondary browser window, the more you risk getting your users, your
customers, your visitors run into problems, irritations, difficulties,
fears, whatever. The more (toolbars, browser functionalities) you remove
from a secondary browser window, the more you destroy the user
experience of your site.
The fact that now browser manufacturers are giving back to users
absolute and full veto power over toolbars and browser functionalities
is a sign that your attitude does not promote the users' objective best
interests and the designers' objective best interests in such web
interaction.

After all the firestorm of postings, apparently nobody knows (or is willing
to tell) how to do this!

You never clearly explained the webpage situation; you never talked
about a form, you never talked about scrolling before, you never talked
about a 3rd party app. You only requested technical and very targeted
questions about removing the browser toolbar and menubar in an
non-window.open-ed() browser window and you got a fair, correct and
precise answer on this. In MSIE 6 for windows, it's impossible to remove
the menubar, even if the user wants to remove it, even without an http
connection, without js, even if you were going to pay hundreds of $ to
anyone who would do it.

You're the one who posted very precise and targeted questions and you're
the one who claimed to be able to remove toolbar and menubar in NS which
is simply not true: you need to get full and complete consent from the
user in a confirm popup box to do so... and why in the world would he be
willing to do that? He can View/Show-Hide toolbars as he wishes, as it
pleases without giving a web designer's scripts with unknown intents the
power over his browser window.
BTW, if you plan on coming to my house with rope and gasoline you might as
well bring your crosses and bedsheets too, but I hope your ass is dog bite
and rock salt proof.

"Code Monkee" <mo****@monkeebusiness.com> wrote in message
news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?

When opening the window via javascript I can specify
'toolbar=no,menubar=no', which works fine.
However if the window already exists how can I remove them? If the


browser
is Netscape I can use javascript:
window.toolbar.visible = false;
window.menubar.visible = false;
but IE produces the error:
"'window.toolbar.visible' is null or not an object".
Is there a different window attribute or method I should use, or do I need
to do this with VBScript?

Thanks.



DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/

Jul 20 '05 #12

P: n/a
DU
Code Monkee wrote:
Rebuttals,
1) I never once talked of removing the scrollbars, and in fact don't do
this, but people seem to like that rant.
The "etc" in your posts suggested it could have been the case.
2) Netscape (6.2.1 precisely)
For the very first time, you pinpoint the version. Very very few people
are still using NS 6.x. Why wouldn't they upgrade to NS 7.1 which has
thousands of bug fixes including security and privacy ones, including
many features? I don't know about NS 6.2.1 allowing you to turn off ,
just like that, the menubar and toolbar of users (and if this is
possible, then this is a privacy and security bug for sure because you
never should be able to do that without the users' explicit consent) but
I do know you can NOT achieve that in NS 7.x without the users fully
aware consent.

With NS 7.1, you just can NOT even turn off menubar and toolbar in popup
windows.

lets me do this, so saying NS won't is itself simply not true.
NS 7.x does not let you do this, just like that. I doubt NS 4.x lets you
do this also.
3) Why go into all the gory and verbose details of my app, their app, your
browser, his age, blah, blah, blah, when I merely asked for the answer to
the question "How can the toolbar and menubar be hidden in IE?"?


and I'm repeating again that you got a full and complete answer. IT'S
NOT POSSIBLE in "IE". Am I loud and clear?

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/

Jul 20 '05 #13

P: n/a
Code Monkee wrote:
Rebuttals,
1) I never once talked of removing the scrollbars, and in fact don't do
this, but people seem to like that rant.
The entire post wasn't directed at you. It is intended for a larger audience
consisting of people who may read your post and assume because a "professional
developer" wants to remove menu and toolbars, it's an accepted practice. Also,
as developers, the rest of us have a vested interest in promoting proper
practices. For every developer that inappropriately messes with the users'
experience, there is another user installing software or enabling features that
make it impossible for the rest of us to rely on the behaviour of these
features.
2) Netscape (6.2.1 precisely) lets me do this, so saying NS won't is itself
simply not true.
If Netscape 6.2.1 lets you do what you want, then it's a flaw in Netscape
6.2.1, not proper coding on your part. If you want your userbase to use a
crippled, bug-ridden browser based on a < 1.0 version of Mozilla so you can
remove their menu and toolbar, you are certainly free to do so.

Of course, I'd personally recommend Netscape 7.1, based on Mozilla 1.4, since
it contains less bugs and more features then 6.2.1.
3) Why go into all the gory and verbose details of my app, their app, your
browser, his age, blah, blah, blah, when I merely asked for the answer to
the question "How can the toolbar and menubar be hidden in IE?"?


The toolbar and menubar can not be hidden in the current window in Internet
Explorer. Of course, you'd have already known this if you'd checked the
documentation:

<url:
http://msdn.microsoft.com/workshop/a...nformation.asp
/>
<url:
http://msdn.microsoft.com/workshop/a..._navigator.asp
/>
<url:
http://msdn.microsoft.com/workshop/a...obj_window.asp
/>

No properties or methods listed that can used (even with extended security) to
remove the chrome elements you want to remove. Also, reading documentation
provides you with a way to do what you want in Netscape 7.1:

<url: http://www.mozilla.org/docs/dom/domr...f.html#1004028 />
specifically <url:
http://www.mozilla.org/docs/dom/domr...2.html#1017467 />

"To toggle the visibility of these bars, you must either sign your scripts or
enable the appropriate privileges, as in the example above. Also be aware that
dynamically updating the visibilty of the various toolbars can change the size
of the window rather dramatically, and may affect the layout of your page."

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #14

P: n/a
In article <bf**********@news.eusc.inter.net>, DU <dr*******@hotREMOVEmail.com> writes:
Andrew Davidson wrote:
"Code Monkee" <mo****@monkeebusiness.com> wrote in message news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?


How can I get into your house and hide all the furniture?


How can NBC, CBS, ABC implement a connection to your tv via waves so
that they can disable the volume sound knob and the channel knob?


Didn't you ever watch _The Outer Limits_? "Do not attempt to adjust your
set. We control the treble. ..."

--
Michael F. Stemper
#include <Standard_Disclaimer>
Give a man a fish, and you feed him for a day. Teach him how to fish,
and you can sell him equipment.

Jul 20 '05 #15

P: n/a
DU
Michael Stemper wrote:
In article <bf**********@news.eusc.inter.net>, DU <dr*******@hotREMOVEmail.com> writes:
Andrew Davidson wrote:
"Code Monkee" <mo****@monkeebusiness.com> wrote in message news:fL********************@giganews.com...
How can the toolbar and menubar be hidden in IE?

How can I get into your house and hide all the furniture?


How can NBC, CBS, ABC implement a connection to your tv via waves so
that they can disable the volume sound knob and the channel knob?

Didn't you ever watch _The Outer Limits_? "Do not attempt to adjust your
set. We control the treble. ..."


Yep! it was a good serie! :)

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/

Jul 20 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.