473,508 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable a menu item in browser

Hello Guys,
Can somebody tell me how I can disable a menu item such as "save as" in the
Internet Explorer or Netscape using Javascript. Thanks.
Nemo
Aug 16 '06 #1
8 7651
Nemo wrote:
Can somebody tell me how I can disable a menu item such as "save as" in
the Internet Explorer or Netscape using Javascript.
You can't.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 16 '06 #2
Then how they do that becasue I have seen this, is there another way or
another script like VB?

"David Dorward" <do*****@yahoo.comwrote in message
news:ec*******************@news.demon.co.uk...
Nemo wrote:
Can somebody tell me how I can disable a menu item such as "save as" in
the Internet Explorer or Netscape using Javascript.

You can't.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Aug 17 '06 #3
RC
Nemo wrote:
Hello Guys,
Can somebody tell me how I can disable a menu item such as "save as" in the
Internet Explorer or Netscape using Javascript. Thanks.
Nemo

No, you can't remove a menu item from a menu.
But you can eliminate the all menu.
Try

window.open("yourFile.html", "targetNewWindow",
"toolbar=no,location=0,directory=no,status=no,menu bar=0,scrollbars=no,resizable=0,copyhistory=0,widt h=200,height=200");
Aug 17 '06 #4
RC said the following on 8/17/2006 8:53 AM:
Nemo wrote:
>Hello Guys,
Can somebody tell me how I can disable a menu item such as "save as"
in the
Internet Explorer or Netscape using Javascript. Thanks.
Nemo


No, you can't remove a menu item from a menu.
But you can eliminate the all menu.
Try
And then wonder why it doesn't remove the toolbars?
window.open("yourFile.html", "targetNewWindow",
"toolbar=no,location=0,directory=no,status=no,menu bar=0,scrollbars=no,resizable=0,copyhistory=0,widt h=200,height=200");
Control-N

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 17 '06 #5
RC
Randy Webb wrote:
>
And then wonder why it doesn't remove the toolbars?
Then try

"toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,copyhistory=0,width= 500,height=200"

It works for me in FF, NS and IE.
Aug 17 '06 #6
RC said the following on 8/17/2006 9:55 AM:
Randy Webb wrote:
>>
And then wonder why it doesn't remove the toolbars?

Then try

"toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,copyhistory=0,width= 500,height=200"
It works for me in FF, NS and IE.
Try it in IE7.
Try it in Opera.
Try it in FF with the user.js file edited:

user_pref("dom.disable_window_open_feature.toolbar ", true);

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 17 '06 #7
Nemo wrote:

Please do not top post.
Then how they do that becasue I have seen this
Where?
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 17 '06 #8
David,
I'll try to find it, I have seen a webpage that when I tried to save using
"Save as ...", the menu was disabled, I do not remember if they opened a new
window.
Regards

"David Dorward" <do*****@yahoo.comwrote in message
news:ec*******************@news.demon.co.uk...
Nemo wrote:

Please do not top post.
Then how they do that becasue I have seen this

Where?
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Aug 18 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9640
by: Lijun Yang | last post by:
Hey, I am able to disable the right mouse button on images for netscape and IE but it won't work for Opera. Here is the code: // start of the code var clickmessage="Sorry, you don't have...
29
9746
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank...
8
2441
by: Ken Yu | last post by:
Hi, How can i disable "RightClick Menu" in Internet Explorer, when access the frontpage ? tks a lot ! Ken
5
1519
by: Brian Henry | last post by:
I have a form with a main menu on it (mdi parent form) and i have a child form with a menu and I am mergeing the menus together for the menu called reports.. now when i do this they merge just...
6
2024
by: Agnes | last post by:
In my menu, there is invoice,customer .... etc As the user click 'Invoice' , the invoice form is load, then I want to disable the "Invoice" menu in the Menuitem, ,so the user can only new one...
4
2159
by: Enrika | last post by:
Greetings! I'm working on a CSS drop-down menu, which, to my surprise, is actually working, more-or-less, in both IE *and* Firefox (and Netscape). But there are two changes that I want to make that...
1
3706
by: John Devlon | last post by:
Hi, Can someone please help me. I've got a strang problem in Visual Studio 2005 I've created a windows application, using an MDI form and top menu. When a menu item is clicked, a new instance...
1
5241
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, friends, I am using C#.net 2005 to create a windows application. It has menu items, such as File, etc. Under File, there are more menu items, such as New Files, Working Files, etc. Under...
8
3668
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
0
7224
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
7120
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
7323
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,...
1
7039
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...
0
7494
tracyyun
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...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1553
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 ...
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.