473,385 Members | 1,409 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,385 software developers and data experts.

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 7643
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
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
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
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
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
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
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
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
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
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.