468,514 Members | 1,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

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 7431
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Brian Henry | last post: by
6 posts views Thread by Agnes | last post: by
4 posts views Thread by Enrika | last post: by
1 post views Thread by John Devlon | last post: by
1 post views Thread by =?Utf-8?B?QW5kcmV3?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.