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 no effect.
No error message in the javascript console, nor any effect on the
current window.
I've tried Firefox and IE, same effect....
What should I do 12 2672
DEN wrote: I've tried to use the window.toolbar. visible=false property, but it has no effect.
IIRC This "feature" was removed from Mozilla, you cannot change the
visibility property anymore. window.toolbar was never a scriptable IE
element.
Daniel
DEN wrote: 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 no effect. No error message in the javascript console, nor any effect on the current window. I've tried Firefox and IE, same effect....
With IE you should get a script error as window.toolbar is undefined. As
for Firefox only privileged script is allow to perform such changes so
you would need to sign your script and then ask for the privilege e.g.
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ;
window.toolbar. visible = false;
--
Martin Honnen http://JavaScript.FAQTs.com/
Martin Honnen a écrit :
DEN wrote:
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 no effect. No error message in the javascript console, nor any effect on the current window. I've tried Firefox and IE, same effect....
With IE you should get a script error as window.toolbar is undefined. As for Firefox only privileged script is allow to perform such changes so you would need to sign your script and then ask for the privilege e.g.
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ;
window.toolbar. visible = false;
Thanks for this answer,
but as IE is the most used,
does someone know the way to do it for any browser ?
Thanks again
DEN
"DEN" <de********@u3. fr> wrote in message
news:d8******** **@mso1o020.u-3mrs.fr... Martin Honnen a écrit :
DEN wrote:
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 no effect. No error message in the javascript console, nor any effect on the current window. I've tried Firefox and IE, same effect....
With IE you should get a script error as window.toolbar is undefined. As for Firefox only privileged script is allow to perform such changes so you would need to sign your script and then ask for the privilege e.g.
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ; window.toolbar. visible = false;
Thanks for this answer, but as IE is the most used, does someone know the way to do it for any browser ?
The answer you seek was already explained above your reply. To do this
in Firefox or other Gecko-based browsers you do:
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ;
window.toolbar. visible = false;
But:
- if you attempt to do this locally, the user will get a big scary
dialog explaining that a script is about to do something scary and ask
the user if they really want to let the script do this scary thing
- if you attempt to do this from an untrusted Web site the request to
enablePrivilege () will simply be denied
You will need to sign your script (by a certificate) for it to run
without prompts and denial, and then it will only work on the
Gecko-based family of browsers. That's a lot of work and expense to do
something that won't work on all the browsers you expect to support.
Rethink your design.
--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq
Grant Wagner wrote: [...]
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ; window.toolbar. visible = false;
But:
- if you attempt to do this locally, the user will get a big scary dialog explaining that a script is about to do something scary and ask the user if they really want to let the script do this scary thing [...]
Instead of the FUDish term "scary", the more reasonable and really
used term "potentiall y dangerous" and the like should also be used
here, especially in an explanation for beginners.
PointedEars
Grant Wagner wrote: [...]
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ; window.toolbar. visible = false;
But:
- if you attempt to do this locally, the user will get a big scary dialog explaining that a script is about to do something scary and ask the user if they really want to let the script do this scary thing [...]
Instead of the FUDish term "scary", the more reasonable and really
used term "potentiall y harmful" and the like should also be used
here, especially in an explanation for beginners.
PointedEars
Thomas 'PointedEars' Lahn wrote: Grant Wagner wrote:
[...]
netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ;
window.toolba r.visible = false;
But:
- if you attempt to do this locally, the user will get a big scary dialog explaining that a script is about to do something scary and ask the user if they really want to let the script do this scary thing [...]
Instead of the FUDish term "scary", the more reasonable and really used term "potentiall y harmful" and the like should also be used here, especially in an explanation for beginners.
Oh bullshit. Learn to handle reality.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
JRS: In article <15************ ******@PointedE ars.de>, dated Sun, 26
Jun 2005 13:14:12, seen in news:comp.lang. javascript, Thomas
'PointedEars' Lahn <Po*********@we b.de> posted : - if you attempt to do this locally, the user will get a big scary dialog explaining that a script is about to do something scary and ask the user if they really want to let the script do this scary thing [...]
Instead of the FUDish term "scary", the more reasonable and really used term "potentiall y harmful" and the like should also be used here, especially in an explanation for beginners.
One should not criticise foreigners for loose or colloquial use of
English, especially when one is oneself an error-prone foreigner.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> wrote in message
news:15******** **********@Poin tedEars.de... Grant Wagner wrote:
[...] netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ; window.toolbar. visible = false;
But:
- if you attempt to do this locally, the user will get a big scary dialog explaining that a script is about to do something scary and ask the user if they really want to let the script do this scary thing [...]
Instead of the FUDish term "scary", the more reasonable and really used term "potentiall y harmful" and the like should also be used here, especially in an explanation for beginners.
I was using the term "scary" deliberately and repeatedly to exaggerate
the fact that the script shown has a serious drawback (in addition to
the fact that it does not work in the default security environment of
Internet Explorer on Internet Web sites). That drawback is that it
requires end-user interaction that will most likely (hopefully) result
in most users choosing to not allow the script to continue running.
Teaching end-users that it is okay to agree to this prompt is a mistake,
and will lead to end-users taking other actions that would be
ill-advised.
--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Code Monkee |
last post by:
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".
|
by: Prakash Wadhwani |
last post by:
When I start my Application I put the following code in the Main form
Load Event which switches off all the ToolBars so that nothing except
my form & it's controls are visible to the user.
..........................................................
Private Sub Form_Load()
CurrentDb.Properties("StartupShowDBWindow") = False
'==== Hide the database window ======
'DoCmd.SelectObject acTable, , True
'DoCmd.RunCommand acCmdWindowHide
|
by: TD |
last post by:
I created a new toolbar for my reports and need a button on it that
opens (I'm not sure what the offical name of this window is) the
Windows printer window where you can select which printer to print to
and change the printer preferences, etc. I am using Access 2003. Is
there a way to do this?
Thanks,
TD
|
by: Sveta |
last post by:
Hi all!
C# question:
Does anyone knows how to make a toolbar button image to
make visible for a disabled button?
When the toolbar button is disabled, only the gray hole is
displayed instead of the grayed out image.
Thank you.
|
by: Jan Krouwer |
last post by:
I have a problem that shows up only on some systems - the toolbar text in
buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I
changed the textalign property to "right". This solved the problem, but I
don't know what's happening. I notice that there is a small "dot" in the
first toolbar button that shows up in either of the textalign property
choices. Perhaps this is why the text disappears but I didn't put the dot...
| |
by: brochu121 |
last post by:
Does anyone know of a way to make a toolbar visible in IE through
automation? I am not speaking about the InternetExplorer.ToolBar that I
have run into on MSDN, but rather want to make a toolbar such as
Yahoo's visibilbe through running my script.
How would I do this.
Thanks,
Dave
|
by: solar |
last post by:
With my command DoCmd.ShowToolbar "Toolbar1", acToolbarYes i make my
toolbar Toolbar1 visible.I want at the same time make all
other
toolbars on the screen invisible,regardless how they are
called.Sometimes i have
different toolbars shown and i am interested in a command
that does
not refer toa specific toolbar, but makes all the toolbats
on the
screeninvisible.Is it possible ?
|
by: manjesh |
last post by:
hi ,
kindly help to create a toolbar with that new , save , edit, cancel button ,
if i open each form to operate this buttons ,instead of placing in each form .
regards
manjesh
|
by: =?Utf-8?B?L2Rldi9udWxs?= |
last post by:
Hello,
i am using visual studio 2003 enterprise architect version. I am making
apps for the .Net framework 1.1. While testing an interface, i discovered
something strange.
In this application we have a standard toolbar that is at the top of the
form window. It contains about 8 buttons that use images from an imagelist.
Sometimes we hide buttons thru the code.
When a button is hidden, i assumed that it wasn't clickable. It appears
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |