473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Hiding the toolbar, menubar, etc?

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
15 65708

"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
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
"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
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
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
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
"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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris | last post by:
Hi I have designed my website to fit my standard windows. I use a javascript scroller that nescitates the removal of the browser scroll bars. However if a user has an extra toolbar open in...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
12
by: DEN | last post by:
Hello, I need to remove toolbar and menubar from my current window (not opened with window.open, it would be too easy!!!). I've tried to use the window.toolbar.visible=false property, but it has...
8
by: VB Programmer | last post by:
On some websites I've seen by clicking on a button or hlink a new IE browser window is spawned that does NOT have any toolbar (ie No back button, etc...) How can I do this on my ASPX page? ...
8
by: Jho | last post by:
Is it wise to do the following to hide html source and other info. I plan to do a popup window which would close my existing web page and popup a window in its place without toolbar and...
1
by: RJDev | last post by:
Hi, Do yoy have any idee on how to manipulate the explorer browser screen. I wont to make my web app so the menubar toobar and statusbar are hidden. The minimize and maximize options need to...
0
by: Jeff | last post by:
The code below works to open an new browser window without toolbar, etc. I'm also attempting to hide the vertical scroll bar. Could someone tell me what I need to add to this code to do so (in a way...
4
by: Jon | last post by:
Hi, I am calling the function showpopupWindow(item) to open and write a popup window. When testing in IE6 locally the popup window displays my text in both the title and status bars but when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.